Skip to main content
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.0/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