omit-nully

1.0.0 • Public • Published

omit-nully

Build Status npm version License

Omit null or undefined object values

const omitNully = require('omit-nully')
const obj = {
  a: 'foo',
  b: undefined,
  c: null,
  d: 'bar'
}
omitNully(obj)
//=> {a: 'foo', d: 'bar'}

Installation

npm install --save omit-nully

Author

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

License

Released under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i omit-nully

Weekly Downloads

24

Version

1.0.0

License

MIT

Last publish

Collaborators

  • tlvince