From 1320706172e1cf8f050f839067010fe5ee6a487b Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 12 Sep 2015 00:00:13 -0700 Subject: [PATCH] Make `_.merge` source object assignments align with source array assignments. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 50642fe8c..4cf54fef3 100644 --- a/lodash.js +++ b/lodash.js @@ -2570,7 +2570,7 @@ else if (isPlainObject(srcValue) || isArguments(srcValue)) { newValue = isArguments(oldValue) ? toPlainObject(oldValue) - : (isObject(oldValue) ? oldValue : {}); + : (isObject(oldValue) ? oldValue : srcValue); } else { isCommon = isFunction(srcValue);