Run all rules that return true for their runIf condition, but only when the predicate function returns true.
Function that determines if rules should be evaluated
Array of rules to evaluate when predicate is true
A Rule that combines the behavior of all matching rules
const rule = allIf( (input) => input.type === 'special', rule1, rule2); Copy
const rule = allIf( (input) => input.type === 'special', rule1, rule2);
Run all rules that return true for their runIf condition, but only when the predicate function returns true.