Ensure _.defaultsDeep doesn't convert function properties to objects. [closes #1783]

This commit is contained in:
John-David Dalton
2016-01-13 21:20:05 -08:00
parent f92dc95c58
commit fe3d86bf13
2 changed files with 13 additions and 1 deletions

View File

@@ -5099,7 +5099,9 @@
stack.set(srcValue, objValue);
baseMerge(objValue, srcValue, mergeDefaults, stack);
}
return objValue === undefined ? baseClone(srcValue) : objValue;
return objValue === undefined
? baseClone(srcValue, undefined, undefined, key, object)
: objValue;
}
/**