extend objects in javascript (shallow)
Install with npm
npm i extend-basic --save
npm test
var extend = require('extend-basic')
var a = {
foo: 1,
bar: 'baz',
bam: true
}
var b = {
bam: false,
boo: [1, 2, 3]
}
console.log(extend(a, b)) // produces -->
{
foo: 1,
bar: 'baz',
bam: false,
boo: [1, 2, 3]
}
Pull requests are welcome. For bugs and feature requests, please create an issue
Keith Williams
Copyright (c) 2014-2015 Keith Williams
Released under the MIT license