Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/tsafe/index.ts>noUndefined

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