Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/tsafe/index.ts>noUndefined

🔩 The missing TypeScript utils
Latest
function noUndefined
import { noUndefined } from "https://deno.land/x/tsafe@v1.7.5/index.ts";

Removes the enumerable properties whose values are undefined.

Example: noUndefined({ "foo": undefined, "bar": 3 }) returns a new object { "bar": 3 }

Type Parameters

T extends object