(x: unknown)
| 63 | ); |
| 64 | |
| 65 | function isPrimitive(x: unknown) { |
| 66 | return typeof x === "string" || |
| 67 | typeof x === "number" || |
| 68 | typeof x === "boolean" || |
| 69 | typeof x === "bigint" || |
| 70 | typeof x === "symbol" || |
| 71 | x == null; |
| 72 | } |
| 73 | |
| 74 | type TypedArray = Pick<Uint8Array | BigUint64Array, "length" | number>; |
| 75 | const TypedArray = Object.getPrototypeOf(Uint8Array); |