MCPcopy
hub / github.com/styled-components/polished / exec

Function exec

src/math/math.js:17–21  ·  view source on GitHub ↗
(operators: Array<any>, values: Array<number>)

Source from the content-addressed store, hash-verified

15}
16
17function exec(operators: Array<any>, values: Array<number>): Array<number | string> {
18 const op = operators.pop()
19 values.push(op.f(...[].concat(...values.splice(-op.argCount))))
20 return op.precedence
21}
22
23function calculate(expression: string, additionalSymbols?: Object): number {
24 const symbolMap = mergeSymbolMaps(additionalSymbols)

Callers 1

calculateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…