https://github.com/mikeibberson/clean-object
Helper function for recursively removing undefined values
https://github.com/mikeibberson/clean-object
Last synced: 5 months 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 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-26T17:24:02.000Z (over 3 years ago)
- Last Synced: 2025-02-23T22:39:31.729Z (5 months 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);
```