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
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.