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