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

Function isEvaluable

modules/material-parser/src/utils.ts:125–133  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

123}
124
125export function isEvaluable(value) {
126 if (isPrimitive(value)) return true;
127 if (Array.isArray(value)) {
128 return value.every(isEvaluable);
129 } else if (isPlainObject(value)) {
130 return Object.keys(value).every((key) => isEvaluable(value[key]));
131 }
132 return false;
133}
134
135export function safeEval(value: any) {
136 if (typeof value === 'string') return originalSafeEval(value);

Callers 1

transformItemFunction · 0.90

Calls 3

isPrimitiveFunction · 0.85
everyMethod · 0.65
isPlainObjectFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…