1.0.1 • Published 6 years ago

clean-undefined v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Clean Undefined

Delete object fields of undefined.

Installation

npm install clean-undefined

Usage

const clean = require('clean-undefined')

const obj1 = {name: 'Bob', age: undefined}
// { name: 'Bob', age: undefined }

const obj2 = clean(obj1)
// { name: 'Bob' }

obj1 === obj2
// true

License

MIT

1.0.1

6 years ago

1.0.0

6 years ago