Fast, tiny and useful helper to replace your properties..
$ npm install optionextendervar optionExtender = require('optionextender')
var previsouly = {
name : 'previously name'
};
var replace = {
name : 'replaced name'
};
console.log(optionExtender(previsouly, replace));
// { name : 'replaced name'}To run the test suite, first install the dependencies, then run npm test:
$ npm install
$ npm test- Properties substitution
The author of optionextender is Felipe Assunção