MCPcopy Create free account
hub / github.com/codemix/graph / isPrimitive

Function isPrimitive

packages/graph/src/astToSteps.ts:922–924  ·  view source on GitHub ↗
(v: unknown)

Source from the content-addressed store, hash-verified

920 // ListLiteral from UNWIND grammar - values may be complex AST nodes
921 // Check if all values are simple primitives or if we need runtime evaluation
922 const isPrimitive = (v: unknown): boolean => {
923 return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || v === null;
924 };
925
926 const allPrimitives = expr.values.every(isPrimitive);
927

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected