Link Search Menu Expand Document

Eval

eval.ts#L470

compile (expr: string): (context: {}): undefined|T

Compiles a JS expression into a function that can be evaluated with context.

Name Type Default Description
expr string    
eval.ts#L486

compileString (expr: string): (vars: any): string

Converts an expression string into an executable JS function. It will replace all ${x} type expressions and evaluate them based on a context.

Name Type Default Description
expr string    

Copyright © 2021 Mathigon.org