object-omit
Return a copy of an object without the given key, or array of keys.
Install
npm:
Install withnpm i object-omit --save-dev
Usage
var omit = ;
Pass a string key
to omit:
//=> { b: 'b', c: 'c' }
Pass an array of keys
to omit:
//=> { b: 'b' }
Returns the object if no keys are passed:
//=> {a: 'a', b: 'b', c: 'c'}
Returns an empty object if no value is passed.
//=> {}
Runing tests
Install dev dependencies:
npm i -d && npm test
Author
Jon Schlinkert
Other javascript/node.js utils
Other projects that I maintain:
- arr
- arr-diff
- array-last
- array-slice
- array-sum
- arrayify-compact
- compact-object
- delete
- for-in
- for-own
- has-any
- has-value
- is-number
- is-plain-object
- mixin-deep
- mixin-object
- object-length
- omit-empty
- reduce-object
License
Copyright (c) 2014-2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb on February 13, 2015.