MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / evaluateExpression

Function evaluateExpression

packages/utils/src/script.ts:48–52  ·  view source on GitHub ↗
(expr: string)

Source from the content-addressed store, hash-verified

46}
47
48export function evaluateExpression(expr: string) {
49 // eslint-disable-next-line no-new-func
50 const fn = new Function(expr);
51 return fn();
52}
53
54export function newFunction(args: string, code: string) {
55 try {

Callers 1

script.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…