clean-obj
Clean objects recursively, deleting undefined & null or falsy properties.
Installation
npm i clean-obj --save
Usage
cleanObj(obj [,strict])
The usage of this module is very straightforward, as you can see in the example below.
var cleanObj = var obj = key: 'value' undf: undefined nullz: null falsy: 0 bool: false // { set: 'value', falsy: 0, bool: false } // { set: 'value' }
License
MIT