1.0.3 • Published 9 years ago

object-except v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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