mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Consolidate ternary in baseClone.
This commit is contained in:
@@ -2686,7 +2686,7 @@
|
|||||||
return cloneBuffer(value, isDeep);
|
return cloneBuffer(value, isDeep);
|
||||||
}
|
}
|
||||||
if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
|
if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
|
||||||
result = isFlat ? {} : initCloneObject(isFunc ? {} : value);
|
result = (isFlat || isFunc) ? {} : initCloneObject(value);
|
||||||
if (!isDeep) {
|
if (!isDeep) {
|
||||||
return isFlat
|
return isFlat
|
||||||
? copySymbolsIn(value, baseAssignIn(result, value))
|
? copySymbolsIn(value, baseAssignIn(result, value))
|
||||||
|
|||||||
Reference in New Issue
Block a user