eval

Methods

(static) evaluate(expr, variablesopt) → {*}

Evaluate an expression.

Source:
Parameters:
Name Type Attributes Description
expr String

Expression to evaluate

variables * <optional>

Variables as local scope

Returns:
Type:
*

(static) interpolate(str, variablesopt) → {*}

Interpolate a string with variables.

Source:
Parameters:
Name Type Attributes Description
str Srting

Text to interpolate

variables * <optional>

Variables to interpolate

Returns:
Type:
*