Make _.merge source object assignments align with source array assignments.

This commit is contained in:
John-David Dalton
2015-09-12 00:00:13 -07:00
parent fb4cf9e78f
commit 1320706172

View File

@@ -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);