mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07:49 +00:00
Make _.merge source object assignments align with source array assignments.
This commit is contained in:
@@ -2570,7 +2570,7 @@
|
|||||||
else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
||||||
newValue = isArguments(oldValue)
|
newValue = isArguments(oldValue)
|
||||||
? toPlainObject(oldValue)
|
? toPlainObject(oldValue)
|
||||||
: (isObject(oldValue) ? oldValue : {});
|
: (isObject(oldValue) ? oldValue : srcValue);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
isCommon = isFunction(srcValue);
|
isCommon = isFunction(srcValue);
|
||||||
|
|||||||
Reference in New Issue
Block a user