object-except
v1.0.3
Published
Remove specified properties from the object and return it
Downloads
3
Maintainers
Readme
object-except
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