compact-obj

remove all empty values from an object recursively.

npm install compact-obj
4 downloads in the last week
8 downloads in the last month

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

npm loves you