Use baseFor in baseMerge.

This commit is contained in:
John-David Dalton
2016-10-03 22:32:30 -07:00
parent 81bdb9da43
commit 3c30100837

View File

@@ -3571,12 +3571,7 @@
if (object === source) {
return;
}
var props = isArray(source) ? undefined : baseKeysIn(source);
arrayEach(props || source, function(srcValue, key) {
if (props) {
key = srcValue;
srcValue = source[key];
}
baseFor(source, function(srcValue, key) {
if (isObject(srcValue)) {
stack || (stack = new Stack);
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
@@ -3591,7 +3586,7 @@
}
assignMergeValue(object, key, newValue);
}
});
}, keysIn);
}
/**