allPass
Returns a predicate that checks if a value satisfies ALL predicates.
When every input is a type guard, the result narrows to the intersection
of every guard's target type. Plain boolean predicates contribute nothing
to the narrowing (they fall back to no-op).
Usage
allPass(predicates: ReadonlyArray<(value: unknown) => boolean>)
Returns a predicate that checks if a value satisfies ALL predicates.
When every input is a type guard, the result narrows to the intersection
of every guard's target type. Plain boolean predicates contribute nothing
to the narrowing (they fall back to no-op).
Parameters
predicatesReadonlyArray<(value: unknown) => boolean>required
the predicates to combine.
Returns
a predicate that returns true only when every supplied predicate passes.