Combine predicates with logical OR. Short-circuits on the first true.
true
const isPriorityOrder = or<Order>( (o) => o.total > 500, (o) => o.customerTier === "gold", ) Copy
const isPriorityOrder = or<Order>( (o) => o.total > 500, (o) => o.customerTier === "gold", )
Combine predicates with logical OR. Short-circuits on the first
true.