extend-shallow NPM version Build Status

Extend an object with the properties of additional objects. node.js/javascript util.

Install

Install with npm

sh $ npm i extend-shallow --save

Usage

```js var extend = require('extend-shallow');

extend({a: 'b'}, {c: 'd'}) //=> {a: 'b', c: 'd'} ```

Pass an empty object to shallow clone:

js var obj = {}; extend(obj, {a: 'b'}, {c: 'd'}) //=> {a: 'b', c: 'd'}

Related

Running tests

Install dev dependencies:

sh $ npm i -d && npm test

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on June 29, 2015.