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