1.0.0 • Published 7 years ago
omit-nully v1.0.0
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 git@tlvince.com (https://tlvince.com)
License
Released under the MIT license.
1.0.0
7 years ago