lunaisadev-website-old/node_modules/extend-shallow
Luna 4f63b4f9a0 first commit 2021-07-27 18:40:12 -07:00
..
LICENSE first commit 2021-07-27 18:40:12 -07:00
README.md first commit 2021-07-27 18:40:12 -07:00
index.js first commit 2021-07-27 18:40:12 -07:00
package.json first commit 2021-07-27 18:40:12 -07:00

README.md

extend-shallow NPM version Build Status

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'}
  • 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 Object constructor.
  • 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.