object-augmenter
v0.1.1
Published
Small utility to augment one JS object with another
Downloads
5
Readme
Object Augmenter
Small utility to augment one JS object with another
The idea here that we are merging two JS objects like a trees (in depth). There are no special rules or arguments. The augmenter can contain only the fields that are needs to be updated plus extrs ones if needed.
Installation
npm install object-augmenter
Usage
var augment = require('object-augmenter');
var person = {
name: {
first: "John",
second: "Dough"
}
};
augment(person, {name: {second: "Doe"}, dob: "01.01.1970"});
License
MIT