Sha256: dbc0950a1c6287ccf43b60402b7660ae4ffb2ebf8fab006ce4fd7766ca0f939c

Contents?: true

Size: 839 Bytes

Versions: 270

Compression:

Stored size: 839 Bytes

Contents

var apply = require('./_apply'),
    baseRest = require('./_baseRest'),
    customDefaultsMerge = require('./_customDefaultsMerge'),
    mergeWith = require('./mergeWith');

/**
 * This method is like `_.defaults` except that it recursively assigns
 * default properties.
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 3.10.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} [sources] The source objects.
 * @returns {Object} Returns `object`.
 * @see _.defaults
 * @example
 *
 * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
 * // => { 'a': { 'b': 2, 'c': 3 } }
 */
var defaultsDeep = baseRest(function(args) {
  args.push(undefined, customDefaultsMerge);
  return apply(mergeWith, undefined, args);
});

module.exports = defaultsDeep;

Version data entries

270 entries across 269 versions & 28 rubygems

Version Path
disco_app-0.18.2 test/dummy/node_modules/lodash/defaultsDeep.js
sumomo-0.8.15 data/sumomo/api_modules/node_modules/lodash/defaultsDeep.js
trusty-cms-5.0.7 node_modules/lodash/defaultsDeep.js
appmap-0.72.2 ./node_modules/lodash/defaultsDeep.js
trusty-cms-5.0.6 node_modules/lodash/defaultsDeep.js
appmap-0.72.1 ./node_modules/lodash/defaultsDeep.js
appmap-0.72.0 ./node_modules/lodash/defaultsDeep.js
trusty-cms-5.0.5 node_modules/lodash/defaultsDeep.js
trusty-cms-5.0.4 node_modules/lodash/defaultsDeep.js
appmap-0.71.0 ./node_modules/lodash/defaultsDeep.js
disco_app-0.16.1 test/dummy/node_modules/lodash/defaultsDeep.js
appmap-0.70.2 ./node_modules/lodash/defaultsDeep.js
sumomo-0.8.14 data/sumomo/api_modules/node_modules/lodash/defaultsDeep.js
appmap-0.70.1 ./node_modules/lodash/defaultsDeep.js
appmap-0.70.0 ./node_modules/lodash/defaultsDeep.js
appmap-0.69.0 ./node_modules/lodash/defaultsDeep.js
sumomo-0.8.13 data/sumomo/api_modules/node_modules/lodash/defaultsDeep.js
appmap-0.68.2 ./node_modules/lodash/defaultsDeep.js
appmap-0.68.1 ./node_modules/lodash/defaultsDeep.js
disco_app-0.15.2 test/dummy/node_modules/lodash/defaultsDeep.js