Skip to content

Commit

Permalink
Add clearer behavior to readme (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilias-t authored Jun 20, 2023
1 parent 79e1e78 commit 73b3b64
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,16 @@ 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`

0 comments on commit 73b3b64

Please sign in to comment.