compact-obj

remove all empty values from an object recursively.

object

remove all empty values from an object recursively.

$ npm install compact-obj
var compact = require('compact-obj');
 
var new = compact({obj:'', cool:'foo'});
//= {cool:'foo'} 

MIT