extend-shallow (2.0.1)
Published 2026-02-24 13:56:33 +00:00 by atheaadmin
Installation
registry=npm install extend-shallow@2.0.1"extend-shallow": "2.0.1"About this package
extend-shallow

Extend an object with the properties of additional objects. node.js/javascript util.
Install
Install with npm
$ npm i extend-shallow --save
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'}
Related
- extend-shallow: Extend an object with the properties of additional objects. node.js/javascript util.
- for-own: Iterate over the own enumerable properties of an object, and return an object with properties… more
- for-in: Iterate over the own and inherited enumerable properties of an objecte, and return an object… more
- is-plain-object: Returns true if an object was created by the
Objectconstructor. - isobject: Returns true if the value is an object and not an array or null.
- kind-of: Get the native type of a value.
Running tests
Install dev dependencies:
$ 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.
Dependencies
Dependencies
| ID | Version |
|---|---|
| is-extendable | ^0.1.0 |
Development Dependencies
| ID | Version |
|---|---|
| array-slice | ^0.2.3 |
| benchmarked | ^0.1.4 |
| chalk | ^1.0.0 |
| for-own | ^0.1.3 |
| glob | ^5.0.12 |
| is-plain-object | ^2.0.1 |
| kind-of | ^2.0.0 |
| minimist | ^1.1.1 |
| mocha | ^2.2.5 |
| should | ^7.0.1 |
Keywords
assign
extend
javascript
js
keys
merge
obj
object
prop
properties
property
props
shallow
util
utility
utils
value
Details
Assets (1)
Versions (2)
View all
extend-shallow-2.0.1.tgz
2.2 KiB