Skip to content

filter

filter<A>(predicate): (data) => Readonly<Record<string, A>>

Defined in: Utils/Rec.ts:64

Filters values in a record by a predicate.

A

(a) => boolean

(data): Readonly<Record<string, A>>

Readonly<Record<string, A>>

Readonly<Record<string, A>>

pipe({ a: 1, b: 2, c: 3 }, Rec.filter(n => n > 1)); // { b: 2, c: 3 }