Détail du package

object-delete-value

goto-bus-stop390Apache-2.01.0.0

delete keys with the given value from an object

delete, keys, object, set

readme

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

changelog

object-delete-value change log

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Unreleased

1.0.0 / 2017-11-13

  • initial release