8000 GitHub - Luxiaoren/clear-object: clear the object that value u dont wanted
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Luxiaoren/clear-object

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clear-object

clear-object

Install

$ npm install clear-object

Usage

const clearObject = require('clear-object')

clearObject({a: 1, b: null}, null)
// => {a: 1}

clearObject({a: 1, b: null, c: ''}, [null, ''])

// => {a: 1}

clearObject([null, '', 1], [null, ''])

// => [1]

clearObject([null, '', 1], null)

// => ['', 1]

About

clear the object that value u dont wanted

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0