clean-undefined

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i clean-undefined

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

928 B

Total Files

3

Last publish

Collaborators

  • zhaoyao91