node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

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