import { compactObject } from "https://deno.land/x/itertools@v1.1.1/custom.ts";
Removes all undefined values from the given object. Returns a new object.
>>> compactObject({ a: 1, b: undefined, c: 0 })
{ a: 1, c: 0 }
Parameters
obj: O
Returns
Omit<O, NullableKeys<O>>