Skip to content

frozzare/object-except

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Remove specified properties from the object and return it

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published