@ryanburnette/merge
v1.0.0
Published
Zero dependency recursive merge function.
Downloads
4
Readme
@ryanburnette/merge
Zero dependency recursive merge function.
Usage
var merge = require('@ryanburnette/merge');
var defaults = {
foo: 'a',
bar: 'b'
};
var options = {
foo: 'c',
baz: 'd'
};
options = merge(defaults,options);
console.log(options);
// {
// foo: 'c',
// bar: 'b',
// baz: 'd'
// }