Simplifies an expression with values in context.
This method tries to evaluate all the expressions and reduce them to its corresponding boolean value. If a value required for the expression is not present in the context, the minimal corresponding expression will be returned.
Raw expression.
Evaluation data context.
OptionalstrictKeys: string[] | Set<string>keys to be considered present even if they are not present in the context. Passing as a Set is recommended for performance reasons.
OptionaloptionalKeys: string[] | Set<string>keys to be considered not present unless they are in the context or in
strictKeys; when strictKeys is undefined and optionalKeys is an array, every key that is not in
optionalKeys is considered to be present and thus will be evaluated. Passing as a Set is recommended for
performance reasons.
Condition engine