UNPKG

boolean-expressions

Version:

Boolean expression parser and evaluator. Makes use of the Ohm grammar package with grammar rules found [here](https://github.com/avadavat/boolean-expressions/blob/master/src/grammar/grammarRules.ts).

6 lines (5 loc) 182 B
/** * Returns a list of all the unique variable names in the given expression. */ declare function extractVariables(expression: string): string[]; export default extractVariables;