mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Optimize object path in baseMergeDeep.
This commit is contained in:
committed by
jdalton
parent
4011f054d6
commit
d6f1b164f7
@@ -2534,7 +2534,7 @@
|
|||||||
|
|
||||||
if (isCommon) {
|
if (isCommon) {
|
||||||
result = srcValue;
|
result = srcValue;
|
||||||
if (isArray(srcValue) || isTypedArray(srcValue)) {
|
if (isLength(srcValue) && (isArray(srcValue) || isTypedArray(srcValue))) {
|
||||||
result = isArray(value) ? value : [];
|
result = isArray(value) ? value : [];
|
||||||
} else if (isPlainObject(srcValue)) {
|
} else if (isPlainObject(srcValue)) {
|
||||||
result = isPlainObject(value) ? value : {};
|
result = isPlainObject(value) ? value : {};
|
||||||
|
|||||||
Reference in New Issue
Block a user