object-delete-value
delete keys with the given value from an object
Last updated 3 years ago by goto-bus-stop .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install object-delete-value 
SYNC missed versions from official npm registry.

object-delete-value

delete keys with the given value from an object

npm travis standard

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.

License

Apache-2.0

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

1 Versions

  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (2)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |