delete-property-by-values
TypeScript icon, indicating that this package has built-in type declarations

1.0.13 • Public • Published

Delete property by values

Usage

# using require
const { deletePropertiesByValues } = require('delete-property-by-values');

# using import
import { deletePropertiesByValues } from 'delete-property-by-values';

Example

const boris = { name: 'Boris', firstname: null, wife: 'Selena', kids: [], nickName: '' };

const newBoris = deletePropertiesByValues(boris, [null, [], '']);

console.log(newBoris);// { name: 'Boris', wife: 'Selena' }

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.13
    3
    • latest

Version History

Package Sidebar

Install

npm i delete-property-by-values

Weekly Downloads

3

Version

1.0.13

License

ISC

Unpacked Size

2.03 kB

Total Files

4

Last publish

Collaborators

  • randriampanana