anyPass
Returns a predicate that checks if a value satisfies ANY predicate.
When every input is a type guard, the result narrows to the union of every guard's target type (since only one needs to match).
Usage
anyPass(predicates: ReadonlyArray<(value: unknown) => boolean>)
Returns a predicate that checks if a value satisfies ANY predicate.
When every input is a type guard, the result narrows to the union of every guard's target type (since only one needs to match).
Parameters
predicatesReadonlyArray<(value: unknown) => boolean>required
the predicates to combine.
Returns
a predicate that returns true when at least one supplied predicate passes.