object-except

1.0.3 • Public • Published

object-except Build Status

Remove specified properties from the object and return it.

Install

$ npm install --save object-except

Example

var objectExcept = require('object-except');
var obj = {
    bar: 'foo',
    foo: {
        bar: 'foo'
    },
    foobar: 'foobar'
};
 
console.log(objectExcept(obj, ['bar', 'foo.bar']));
// { foobar: 'foobar' }

License

MIT © Fredrik Forsmo

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    2
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i object-except

Weekly Downloads

2

Version

1.0.3

License

MIT

Last publish

Collaborators

  • frozzare