JSPM

exclude-keys

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q48689F
  • License ISC

Return a copy of the object excluding the blacklisted properties

Package Exports

  • exclude-keys

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 (exclude-keys) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

exclude-keys

Return a copy of the object excluding the blacklisted properties

Install

$ npm install --save exclude-keys

Example

var exclude = require('exclude-keys');

var obj = {name: 'moe', age: 50, userid: 'moe1'};
console.log(exclude(obj, 'userid'));
// -> { name: 'moe', age: 50 }

var obj = {name: 'moe', age: 50, userid: 'moe1'};
console.log(exclude(obj, ['userid', 'name']));
// -> { age: 50 }

require('exclude-keys')(object, list)

Arguments:

  • object: Object
  • list: list of items to exclude from object

Returns: Return a copy of the object excluding the blacklisted properties

License

© 2016 vikram. MIT License