( expr: MathJsonExpression | null )
| 14 | export const MISSING: MathJsonExpression = ['Error', "'missing'"]; |
| 15 | |
| 16 | export function isNumberExpression( |
| 17 | expr: MathJsonExpression | null |
| 18 | ): expr is number | string | MathJsonNumberObject { |
| 19 | if (typeof expr === 'number' || isNumberObject(expr)) return true; |
| 20 | if (typeof expr === 'string' && matchesNumber(expr)) return true; |
| 21 | return false; |
| 22 | } |
| 23 | |
| 24 | export function isNumberObject( |
| 25 | expr: MathJsonExpression | null |
no test coverage detected