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' }

Package Sidebar

Install

npm i delete-property-by-values

Weekly Downloads

9

Version

1.0.13

License

ISC

Unpacked Size

2.03 kB

Total Files

4

Last publish

Collaborators

  • randriampanana