mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
merge: copy function values independent of source index (#4429)
* merge: copy function values independent of source index * Enable merge tests
This commit is contained in:
committed by
John-David Dalton
parent
2cf08be625
commit
1011cfdf4c
@@ -71,7 +71,7 @@ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, sta
|
||||
if (isArguments(objValue)) {
|
||||
newValue = toPlainObject(objValue)
|
||||
}
|
||||
else if ((srcIndex && typeof objValue == 'function') || !isObject(objValue)) {
|
||||
else if (typeof objValue == 'function' || !isObject(objValue)) {
|
||||
newValue = initCloneObject(srcValue)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user