3.0.6 • Published 7 years ago

merge-deep2 v3.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

merge-deep NPM version NPM downloads Build Status

Recursively merge values in a javascript object.

Install

Install with npm:

$ npm install merge-deep --save

Based on mout's implementation of merge

Usage

var merge = require('merge-deep');

merge({a: {b: {c: 'c', d: 'd'}}}, {a: {b: {e: 'e', f: 'f'}}});
//=> { a: { b: { c: 'c', d: 'd', e: 'e', f: 'f' } } }

Related projects

You might also be interested in these projects:

  • assign-deep: Deeply assign the enumerable properties and/or es6 Symbol properies of source objects to the target… more | homepage
  • defaults-deep: Like extend but recursively copies only the missing properties/values to the target object. | homepage
  • extend-shallow: Extend an object with the properties of additional objects. node.js/javascript util. | homepage
  • merge-deep: Recursively merge values in a javascript object. | homepage
  • mixin-deep: Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone. | homepage
  • omit-deep: Recursively omit the specified key or keys from an object. | homepage

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Building docs

Generate readme and API documentation with verb:

$ npm install verb && npm run docs

Or, if verb is installed globally:

$ verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Jon Schlinkert

License

Copyright © 2016, Jon Schlinkert. Released under the MIT license.


This file was generated by verb, v0.9.0, on April 13, 2016.