ed

extend-deep

Clone recursively and merge array && object member.

Showing:

Popularity

Downloads/wk

357

Maintenance

No Maintenance Data Available

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

extend-deep

Clone recursively and merge array && object member.

Install

$ npm install extend-deep

Usage

var extend = require("extend-deep");

var obj1 = {
  apple: 0,
  pear: ['yellow', 'red'],
  banana: { weight: 52, price: 100 },
  cherry: 97
};
var obj2 = {
  pear: ['white'],
  banana: { price: 200 },
  durian: 100
};
extend(obj1, obj2);
// => {"apple":0,"pear":["white","red"],"banana":{"weight":52,"price":200},"cherry":97,"durian":100}

License

The MIT License

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100