denullify
v1.0.0
Published
removes nulls and undefineds from an object
Downloads
33
Maintainers
Readme
denullify
Removes nulls and undefineds from an object
Example
var denullify = require('denullify'),
var data = {
foo: 'bar',
thing: null,
asdf: undefined,
stuff: {
majigger: null,
boop: 'diddly',
meh: undefined,
}
};
denullify(data)
/*
{
foo: 'bar',
stuff: {
boop: 'diddly',
}
}
*/