5.0.0 • Published 7 months ago

remove-undefined-objects v5.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

remove-undefined-objects

Build npm.io

npm.io

Installation

npm install --save remove-undefined-objects

Usage

import removeUndefinedObjects from 'remove-undefined-objects';

console.log(removeUndefinedObjects({key: [], key2: 123}));
// { key2: 123 }

Behavior

Any items with the following value will be removed:

  • Empty object, {}
  • Empty array, []
  • Undefined, undefined

The following items will NOT be removed:

  • Empty string, ''
  • Null, null
5.0.0

7 months ago

4.0.1

8 months ago

4.0.0

8 months ago

4.0.2

8 months ago

3.0.0

11 months ago

2.0.2

1 year ago

2.0.1

2 years ago

2.0.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago