JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 94591547
  • Score
    100M100P100Q256298F
  • License

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

Package Exports

  • extend-shallow

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (extend-shallow) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

extend-shallow NPM version Build Status

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

Install with npm

npm i extend-shallow --save

Running tests

Install dev dependencies.

npm i -d && npm test

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'}
  • is-plain-object: Returns true if an object was created by the Object constructor.
  • kind-of: Get the native type of a value.
  • for-own: Iterate over the own enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Exit early by returning false. JavaScript/Node.js.
  • extend-shallow: Extend an object with the properties of additional objects. node.js/javascript util.
  • isobject: Returns true if the value is an object and not an array or null.
  • for-in: Iterate over the own and inherited enumerable properties of an objecte, and return an object with properties that evaluate to true from the callback. Exit early by returning false. JavaScript/Node.js

Author

Jon Schlinkert

License

Copyright (c) 2015 Jon Schlinkert
Released under the MIT license


This file was generated by verb-cli on February 27, 2015.