diff --git a/lodash.src.js b/lodash.src.js index 4bd858c79..f544b39f6 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -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 : {};