MCPcopy
hub / github.com/josdejong/mathjs / parseAndEval

Function parseAndEval

test/unit-tests/expression/transforms.test.js:256–258  ·  view source on GitHub ↗

* Helper function to parse an expression and immediately evaluate its results * @param {String} expr * @param {Object} [scope] * @return {*} result

(expr, scope)

Source from the content-addressed store, hash-verified

254 * @return {*} result
255 */
256function parseAndEval (expr, scope) {
257 return parse(expr).evaluate(createMap(scope))
258}

Callers 1

transforms.test.jsFile · 0.70

Calls 2

createMapFunction · 0.90
evaluateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…