scope-eval
v1.0.0scope-eval
Eval a string with a passed scope
Example:
scopeEval = require('scope-eval')
scopeEval("a + b + c", {
a: 1,
b: 2,
c: 3
}) // Returns 6
Eval a string with a passed scope
Example:
scopeEval = require('scope-eval')
scopeEval("a + b + c", {
a: 1,
b: 2,
c: 3
}) // Returns 6