MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / isValueDef

Function isValueDef

src/math-json/scripts/generate_OPERATORS.ts:66–75  ·  view source on GitHub ↗
(d: unknown)

Source from the content-addressed store, hash-verified

64 'canonical' in d)
65 );
66}
67
68function isValueDef(d: unknown): boolean {
69 return (
70 isObj(d) &&
71 ('value' in d ||
72 'constant' in d ||
73 'inferred' in d ||
74 'subscriptEvaluate' in d ||
75 ('type' in d && typeof d.type !== 'function'))
76 );
77}
78

Callers 1

buildPayloadFunction · 0.70

Calls 1

isObjFunction · 0.85

Tested by

no test coverage detected