1.0.3 • Published 9 years ago
object-except v1.0.3
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