From 40ff04911eee49cbca5e28929ff5e96e0395034e Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 11 Feb 2016 23:23:29 -0800 Subject: [PATCH] Remove unneeded `copyArray` from `baseMergeDeep`. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 5dafbfa1c..93e3a9edb 100644 --- a/lodash.js +++ b/lodash.js @@ -3074,7 +3074,7 @@ newValue = srcValue; if (isArray(srcValue) || isTypedArray(srcValue)) { if (isArray(objValue)) { - newValue = srcIndex ? copyArray(objValue) : objValue; + newValue = objValue; } else if (isArrayLikeObject(objValue)) { newValue = copyArray(objValue);