npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

condense-keys

2.0.0

@kevva

npmHomeRepoSnykSocket
Downloads:6240
$ npm install condense-keys
DailyWeeklyMonthlyYearly

condense-keys Build Status

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