* Helper function to parse an expression and immediately evaluate its results * @param {String} expr * @param {Object} [scope] * @return {*} result
(expr, scope)
| 24 | * @return {*} result |
| 25 | */ |
| 26 | function parseAndEval (expr, scope) { |
| 27 | return parse(expr).evaluate(scope) |
| 28 | } |
| 29 | |
| 30 | function parseAndStringifyWithParens (expr) { |
| 31 | return parse(expr).toString({ parenthesis: 'all' }) |
no test coverage detected
searching dependent graphs…