Recursive Object.assign()
JavaScript
Latest commit 6999489 Jul 5, 2016 @tbillington tbillington committed with Fix lint error on require (#18)
Permalink
Failed to load latest commit information.
.editorconfig init Sep 14, 2015
.gitattributes init Sep 14, 2015
.gitignore init Sep 14, 2015
.travis.yml Added travis ci support for node 6 (#17) Jun 10, 2016
index.js Fix lint error on require (#18) Jul 5, 2016
license init Sep 14, 2015
package.json remove now moot XO ignore Dec 21, 2015
readme.md init Sep 14, 2015
test.js upgrade to latest AVA Apr 7, 2016

readme.md

deep-assign Build Status

Recursive Object.assign()

Install

$ npm install --save deep-assign

Usage

var deepAssign = require('deep-assign');

deepAssign({a: {b: 0}}, {a: {b: 1, c: 2}}, {a: {c: 3}});
//=> {a: {b: 1, c: 3}}

deepAssign(target, source, [source, ...])

Recursively assigns own enumerable properties of source objects to the target object and returns the target object. Additional source objects will overwrite previous ones.

Related

License

MIT © Sindre Sorhus