node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

compact-obj

object

remove all empty values from an object recursively.

Installation

$ npm install compact-obj

Example

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

License

MIT