( x: unknown | null )
| 11 | } |
| 12 | |
| 13 | export function isMachineRational( |
| 14 | x: unknown | null |
| 15 | ): x is [SmallInteger, SmallInteger] { |
| 16 | return x !== null && Array.isArray(x) && typeof x[0] === 'number'; |
| 17 | } |
| 18 | |
| 19 | export function isBigRational(x: unknown | null): x is [bigint, bigint] { |
| 20 | return x !== null && Array.isArray(x) && typeof x[0] === 'bigint'; |
no outgoing calls
no test coverage detected