( expr: MathJsonExpression | null )
| 40 | } |
| 41 | |
| 42 | export 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 | |
| 55 | export function isFunctionObject( |
| 56 | expr: MathJsonExpression | null |
no outgoing calls
no test coverage detected