json-logic-js
json-logic-js copied to clipboard
Feature/ Controlled Execution
Changes:
- Added
controlledExecution
option onadd_operation
function - Added unit tests
controlledExecution
Description
This PR adds functionality so that when registering a custom operator with the add_operator
method, you can now pass in a third param options
with the property controlledExecution
. This option allows you to specify how your operator should be treated during evaluation and also prevents all nested parameters to the operator from being pre-evaluated.
Links https://github.com/jwadhams/json-logic-js/issues/116