Optimize object path in baseMergeDeep.

This commit is contained in:
John-David Dalton
2015-01-15 20:06:05 -08:00
committed by jdalton
parent 4011f054d6
commit d6f1b164f7

View File

@@ -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 : {};