12345678910111213141516171819202122232425262728 |
- var baseMerge = require('./_baseMerge'),
- isObject = require('./isObject');
- function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
- if (isObject(objValue) && isObject(srcValue)) {
-
- stack.set(srcValue, objValue);
- baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
- stack['delete'](srcValue);
- }
- return objValue;
- }
- module.exports = customDefaultsMerge;
|