condense-keys
v2.0.0
Published
Remove keys with empty values from an object
Downloads
386
Readme
condense-keys
Remove keys with empty values from an object
Install
$ npm install --save condense-keys
Usage
const condenseKeys = require('condense-keys');
condenseKeys({a: 'foo', b: null, c: undefined, d: ''});
//=> {a: 'foo'}
License
MIT © Kevin Martensson