mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Simplify how deep _.clone handles booleans.
Former-commit-id: adf1d03677336131da2f62bd2fb6e2900c9889a4
This commit is contained in:
@@ -720,7 +720,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
// set additional template `data` values
|
||||
// set additional template `data` properties
|
||||
var args = data.args;
|
||||
if ((data.firstArg = /^[^,]+/.exec(args)[0]) != 'collection' || !data.arrayBranch.inLoop) {
|
||||
data.arrayBranch = null;
|
||||
@@ -1055,8 +1055,6 @@
|
||||
var ctor = value.constructor;
|
||||
switch (className) {
|
||||
case boolClass:
|
||||
return new ctor(value == true);
|
||||
|
||||
case dateClass:
|
||||
return new ctor(+value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user