mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Bump to v4.0.1.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import baseClone from './baseClone';
|
||||
import baseMerge from './baseMerge';
|
||||
import isObject from '../isObject';
|
||||
|
||||
@@ -17,9 +16,9 @@ import isObject from '../isObject';
|
||||
function mergeDefaults(objValue, srcValue, key, object, source, stack) {
|
||||
if (isObject(objValue) && isObject(srcValue)) {
|
||||
stack.set(srcValue, objValue);
|
||||
baseMerge(objValue, srcValue, mergeDefaults, stack);
|
||||
baseMerge(objValue, srcValue, undefined, mergeDefaults, stack);
|
||||
}
|
||||
return objValue === undefined ? baseClone(srcValue) : objValue;
|
||||
return objValue;
|
||||
}
|
||||
|
||||
export default mergeDefaults;
|
||||
|
||||
Reference in New Issue
Block a user