The parsed expression in a JSON format.
The name of the variable to replace.
The value to replace the variable with.
The parsed expression with all occurences of [VariableNode] with the corresponding [ConstantNode].
substituteIn(
{ variable: "A" },
"A",
"10",
"ruleA"
)
// { constant: { type: "number", nodeValue: "10" } }
Generated using TypeDoc
Replace all occurences [variableName] node with the corresponding [constValue] node.