new Formula()
- Source:
- utils/Formula.js
Methods
-
eval(formula, attr, cback)
-
Eval formula
Parameters:
Name Type Description formula
string attr
Object list of key/value attribut
cback
function - Source:
- utils/Formula.js
Formula class safe eval. Will try to clear context to prevent injection. Keep Math formula and ES6 syntax
Eval formula
Name | Type | Description |
---|---|---|
formula |
string | |
attr |
Object | list of key/value attribut |
cback |
function |