object.omit
Return a copy of an object without the given keys.
Install
Install with npm:
npm i object.omit --save-dev
Run tests
npm test
Usage
var omit = require('object.omit');
Pass a string key
to omit:
omit({a: 'a', b: 'b', c: 'c'}, 'a')
Pass an array of keys
to omit:
omit({a: 'a', b: 'b', c: 'c'}, ['a', 'c'])
Returns the object if no keys are passed:
omit({a: 'a', b: 'b', c: 'c'})
Returns an empty object if no value is passed.
omit()
Author
Jon Schlinkert
Other javascript/node.js utils
Other projects that I maintain:
License
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on October 25, 2014.