(key: string)
| 961 | * @internal |
| 962 | */ |
| 963 | export function isCanonicalArrayIndex(key: string): boolean { |
| 964 | const index = Number(key) |
| 965 | return String(index) === key && Number.isInteger(index) && index >= 0 && index < 2 ** 32 - 1 |
| 966 | } |
| 967 | |
| 968 | /** @internal */ |
| 969 | export function isOutOfBounds<A>(i: number, as: ReadonlyArray<A>): boolean { |