extend-shallow
Extend an object with the properties of additional objects. node.js/javascript util.
Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your ❤️ and support.
Install
Install with npm:
$ npm install --save extend-shallow
Usage
var extend = require('extend-shallow');
extend({a: 'b'}, {c: 'd'})
//=> {a: 'b', c: 'd'}
Pass an empty object to shallow clone:
var obj = {};
extend(obj, {a: 'b'}, {c: 'd'})
//=> {a: 'b', c: 'd'}
About
Related projects
You might also be interested in these projects:
extend-shallow: Extend an object with the properties of additional objects. node.js/javascript util. | homepage
is-plain-object: Returns true if an object was created by the
Object
constructor. | homepage
Contributors
Author
Jon Schlinkert
License
Copyright © 2017, Jon Schlinkert. Released under the MIT License.
This file was generated by verb-generate-readme, v0.6.0, on November 19, 2017.
Last updated
Was this helpful?