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

Function isPrimitive

modules/material-parser/src/utils.ts:121–123  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

119}
120
121export function isPrimitive(val) {
122 return !['object', 'function'].includes(typeof val) || val === null;
123}
124
125export function isEvaluable(value) {
126 if (isPrimitive(value)) return true;

Callers 1

isEvaluableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…