object-delete-value
v1.0.0
Published
delete keys with the given value from an object
Downloads
613
Maintainers
Readme
object-delete-value
delete keys with the given value from an object
Install
npm install object-delete-value
Usage
var deleteValue = require('object-delete-value')
var obj = {
abc: 'def',
ghi: 'whaddup',
jkl: 'alphabets',
xyz: 'whaddup'
}
deleteValue(obj, 'whaddup')
// → { abc: 'def',
// jkl: 'alphabets' }
API
deleteValue(obj, value)
Delete all keys from obj
whose values strict-equal value
. Return obj
.