JSPM

omit-falsy

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q18366F
  • License MIT

Omit falsy object values

Package Exports

  • omit-falsy

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (omit-falsy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

omit-falsy

Build Status npm version License

Omit falsy object values

const omitFalsy = require('omit-falsy')
const obj = {
  a: 'foo',
  b: '',
  c: 0,
  d: 'bar'
}
omitFalsy(obj)
//=> {a: 'foo', d: 'bar'}

Installation

npm install --save omit-falsy

Author

© 2016 Tom Vincent git@tlvince.com (https://tlvince.com)

License

Released under the MIT license.