createDynamicValueFunction
| Generic types: | TValue TReturn |
Create a dynamic value function from an expression string. Uses secure AST-based parsing instead of eval() or new Function().
Presentation
function createDynamicValueFunction (
expression: string,
): LogicFn<TValue, TReturn>;Returns
LogicFn<TValue, TReturn> -A LogicFn that evaluates the expression in the context of a field
Parameters
| Name | Type | Description |
|---|---|---|
| expression | string | The expression string to evaluate |