mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +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) {
|
||||
result = srcValue;
|
||||
if (isArray(srcValue) || isTypedArray(srcValue)) {
|
||||
if (isLength(srcValue) && (isArray(srcValue) || isTypedArray(srcValue))) {
|
||||
result = isArray(value) ? value : [];
|
||||
} else if (isPlainObject(srcValue)) {
|
||||
result = isPlainObject(value) ? value : {};
|
||||
|
||||
Reference in New Issue
Block a user