A pure function that runs rule logic and returns a new context by appending to the output array.
appendOutput
Returns whether the rule should run or not.
Only the input and not the full context is passed to runIf. This prevents rules from relying on output, which may be appended to by previous rules by the time run is called.
input
context
runIf
output
run
A pure function that runs rule logic and returns a new context by appending to the output array.