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

Package Sidebar

Install

npm i object-except

Weekly Downloads

3

Version

1.0.3

License

MIT

Last publish

Collaborators

  • frozzare