UNPKG

68kcounter

Version:
9 lines (8 loc) 310 B
export declare type Variables = Record<string, number>; /** * Try to evaluate an ASM expression to a numeric value. * * @param expression Text value * @param vars Optional variables to substitute in expression */ export default function evaluate(expression: string, vars?: Variables): number | undefined;