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

x/tsafe/mod.ts>noUndefined

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