$ npm install defaults-deep
Like
extend
but recursively copies only the missing properties/values to the target object.
Install with npm
$ npm i defaults-deep --save
Install with bower
$ bower install defaults-deep --save
var defaults = require('defaults-deep');
defaults({a: {one: 'one'}}, {a: {two: 'two'}})
//=> {a: {one: 'one', two: 'two'}};
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on May 28, 2015.
© 2010 - cnpmjs.org x YWFE | Home | YWFE