Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikeibberson/clean-object
Helper function for recursively removing undefined values
https://github.com/mikeibberson/clean-object
Last synced: 4 days ago
JSON representation
Helper function for recursively removing undefined values
- Host: GitHub
- URL: https://github.com/mikeibberson/clean-object
- Owner: MikeIbberson
- License: mit
- Created: 2022-02-25T16:31:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-02-26T17:24:02.000Z (over 2 years ago)
- Last Synced: 2024-11-08T10:03:38.952Z (8 days ago)
- Language: JavaScript
- Size: 46.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clean-object
This is a no-dependency helper function that recurses an object and drops its
undefined values.```javascript
const clean = require("clean-object-helper");const output = clean({
foo: 1,
bar: 2,
quuz: undefined,
});// dropped quuz
console.log(output);
```