This repository has been archived by the owner. It is now read-only.
[DEPRECATED] Recursive Object.assign()
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Latest commit b332062 Jul 24, 2017
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 DEPRECATED Jul 23, 2017
test.js upgrade to latest AVA Apr 7, 2016

readme.md

DEPRECATED

Version 2 of this module ended up being something I don't want and I don't have time to fix it.

Check out lodash.merge or merge-options instead.


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