mixin-deep

Deeply mix the properties of objects into the first object, while also mixing-in child objects.

Install

Install with npm:

npm i mixin-deep --save-dev

Run tests

npm test

Usage

var mixinDeep = require('mixin-deep');

mixinDeep({a: {aa: 'aa'}}, {a: {bb: 'bb'}}, {a: {cc: 'cc'}});
//=> { a: { aa: 'aa', bb: 'bb', cc: 'cc' } }

mixinDeep({a: {aa: 'aa', dd: {ee: 'ff'}}}, {a: {bb: 'bb', dd: {gg: 'hh'}}}, {a: {cc: 'cc', dd: {ii: 'jj'}}});
//=> { a: { aa: 'aa', dd: { ee: 'ff', gg: 'hh', ii: 'jj' }, bb: 'bb', cc: 'cc' } }

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors. Released under the MIT license

This file was generated by verb-cli on September 22, 2014.

Last updated