omit-falsy
v1.0.0
Published
Omit falsy object values
Downloads
14
Readme
omit-falsy
Omit falsy object values
const omitFalsy = require('omit-falsy')
const obj = {
a: 'foo',
b: '',
c: 0,
d: 'bar'
}
omitFalsy(obj)
//=> {a: 'foo', d: 'bar'}
Installation
npm install --save omit-falsy
Author
© 2016 Tom Vincent [email protected] (https://tlvince.com)
License
Released under the MIT license.