Sha256: 45b4a37695e699648cfa97d958655364332691a506fd9a1dbfd4c6d51f3fcc2e

Contents?: true

Size: 1.94 KB

Versions: 141

Compression:

Stored size: 1.94 KB

Contents

# extend-shallow [![NPM version](https://badge.fury.io/js/extend-shallow.svg)](http://badge.fury.io/js/extend-shallow)  [![Build Status](https://travis-ci.org/jonschlinkert/extend-shallow.svg)](https://travis-ci.org/jonschlinkert/extend-shallow)

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

## Install

Install with [npm](https://www.npmjs.com/)

```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

* [extend-shallow](https://github.com/jonschlinkert/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util.
* [for-own](https://github.com/jonschlinkert/for-own): Iterate over the own enumerable properties of an object, and return an object with properties… [more](https://github.com/jonschlinkert/for-own)
* [for-in](https://github.com/jonschlinkert/for-in): Iterate over the own and inherited enumerable properties of an objecte, and return an object… [more](https://github.com/jonschlinkert/for-in)
* [is-plain-object](https://github.com/jonschlinkert/is-plain-object): Returns true if an object was created by the `Object` constructor.
* [isobject](https://github.com/jonschlinkert/isobject): Returns true if the value is an object and not an array or null.
* [kind-of](https://github.com/jonschlinkert/kind-of): Get the native type of a value.

## Running tests

Install dev dependencies:

```sh
$ npm i -d && npm test
```

## Author

**Jon Schlinkert**

+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)

## License

Copyright © 2015 Jon Schlinkert
Released under the MIT license.

***

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on June 29, 2015._

Version data entries

141 entries across 38 versions & 12 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/extend-shallow/README.md
disco_app-0.18.0 test/dummy/node_modules/extend-shallow/README.md
disco_app-0.18.2 test/dummy/node_modules/extend-shallow/README.md
disco_app-0.16.1 test/dummy/node_modules/extend-shallow/README.md
disco_app-0.15.2 test/dummy/node_modules/extend-shallow/README.md
disco_app-0.18.4 test/dummy/node_modules/extend-shallow/README.md
disco_app-0.18.1 test/dummy/node_modules/extend-shallow/README.md
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/extend-shallow/README.md
disco_app-0.14.0 test/dummy/node_modules/extend-shallow/README.md
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/extend-shallow/README.md
tang-0.2.1 spec/tang_app/node_modules/extend-shallow/README.md
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/extend-shallow/README.md
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/extend-shallow/README.md
ruby2js-4.0.4 lib/tasks/testrails/node_modules/extend-shallow/README.md
ruby2js-4.0.3 lib/tasks/testrails/node_modules/extend-shallow/README.md
tang-0.2.0 spec/tang_app/node_modules/extend-shallow/README.md
tang-0.1.0 spec/tang_app/node_modules/extend-shallow/README.md
tang-0.0.9 spec/tang_app/node_modules/extend-shallow/README.md
enju_library-0.3.8 spec/dummy/node_modules/extend-shallow/README.md
ilog-0.4.1 node_modules/http-proxy-middleware/node_modules/extglob/node_modules/extend-shallow/README.md