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

x/tsafe/noUndefined.ts>noUndefined

🔩 The missing TypeScript utils
Go to Latest
function noUndefined
import { noUndefined } from "https://deno.land/x/tsafe@v1.6.5/noUndefined.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