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

Function isDictionaryObject

src/math-json/utils.ts:42–53  ·  view source on GitHub ↗
(
  expr: MathJsonExpression | null
)

Source from the content-addressed store, hash-verified

40}
41
42export function isDictionaryObject(
43 expr: MathJsonExpression | null
44): expr is MathJsonDictionaryObject {
45 return (
46 expr !== null &&
47 typeof expr === 'object' &&
48 'dict' in expr &&
49 typeof expr.dict === 'object' &&
50 !Array.isArray(expr.dict) &&
51 expr.dict !== null
52 );
53}
54
55export function isFunctionObject(
56 expr: MathJsonExpression | null

Callers 2

dictionaryFromExpressionFunction · 0.85
jsValueToExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected