compact
compact<
A>(data):Readonly<Record<string,A>>
Defined in: Utils/Rec.ts:259
Removes all None values from a Record<string, Maybe<A>>, returning a plain Record<string, A>.
Useful when building records from fallible lookups.
Type Parameters
Section titled “Type Parameters”A
Parameters
Section titled “Parameters”Readonly<Record<string, Maybe<A>>>
Returns
Section titled “Returns”Readonly<Record<string, A>>