Analysis updated 2026-07-08 · repo last pushed 2026-07-07
Strip undefined fields from API request payloads before sending to a frontend or third-party service.
Clean up configuration objects so they only contain properties with actual values.
Sanitize form data objects to remove undefined entries before processing or storage.
| joshuakgoldberg/without-undefined-properties | 0labs-in/vision-link | arviahq/arvia | |
|---|---|---|---|
| Stars | 4 | 4 | 4 |
| Language | TypeScript | TypeScript | TypeScript |
| Last pushed | 2026-07-07 | — | — |
| Maintenance | Active | — | — |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 1/5 | 3/5 | 3/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Install from npm and import the two functions directly into any TypeScript or Node.js project.
Without Undefined Properties is a small TypeScript utility that does exactly what its name says: it takes an object and gives you back a copy with all the undefined properties stripped out. This is handy because in JavaScript, objects often end up with properties that exist but have no value set, and sometimes you want a clean version of that object without those empty fields cluttering things up. The package provides two functions. The first, withoutUndefinedProperties, handles just the top level of an object, so if you have { a: true, b: undefined }, you get back { a: true }. The second, withoutUndefinedPropertiesDeep, does the same thing but works recursively, meaning it also cleans up undefined values inside nested objects. So { a: true, b: { c: false, d: undefined } } becomes { a: true, b: { c: false } }. Who would use this? Think of a developer building an API that sends data to a frontend or a third-party service. If the request body includes fields that are undefined, it can cause confusion or errors on the receiving end. Running the data through one of these functions before sending it means the payload only contains fields that actually have values. Same goes for configuration objects, form data, or anything where you want a tidy object without placeholder undefined values lurking in it. The project is written in strict TypeScript and is available on npm, so it's easy to install in any Node.js or TypeScript project. The README is quite minimal, it covers the two functions with brief examples and points to contribution guidelines, but doesn't elaborate much beyond that. It's a focused, single-purpose tool rather than a broad utility library.
A tiny TypeScript utility that removes undefined properties from objects, either at the top level or recursively through nested objects, giving you clean data without empty fields.
Mainly TypeScript. The stack also includes TypeScript, Node.js, npm.
Active — commit in last 30 days (last push 2026-07-07).
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.