(s: unknown)
| 2 | import { DEFINITIONS_INEQUALITIES } from './dictionary/definitions-relational-operators.js'; |
| 3 | |
| 4 | export function isLatexString(s: unknown): s is string { |
| 5 | if (typeof s === 'string') return s.startsWith('$') && s.endsWith('$'); |
| 6 | return false; |
| 7 | } |
| 8 | |
| 9 | export function asLatexString(s: unknown): string | null { |
| 10 | if (typeof s === 'number') return s.toString(); |
no outgoing calls
no test coverage detected