OptionalbinaryDefines which binary operators are allowed. If defined, must provide an
allow list or a block list, but not both. Valid options are +, -, *,
**, /, %, <, >, <=, >=, ==, !=, ===, !==, |, &,
<<, >>, >>>.
OptionallogicalDefines which logical operators are allowed. If defined, must provide an
allow list or a block list, but not both. Valid options are ||, &&,
??.
OptionalternaryWhether or not the ternary/conditional operator is allowed. A value of
true allows the ternary operator, false blocks it. Defaults to true.
OptionalunaryDefines which unary operators are allowed. If defined, must provide an
allow list or a block list, but not both. Valid options are -, +, !,
~, typeof.
Defines which operators are allowed.
Example