(num: number)
| 7 | new Array<number>(num).fill(1).map((_, i) => i); |
| 8 | |
| 9 | export const hexString = (num: number): string => { |
| 10 | const byteCount = Math.ceil(16 / 8); |
| 11 | |
| 12 | // eslint-disable-next-line no-bitwise |
| 13 | return `0x${(num >>> 0) |
| 14 | .toString(16) |
| 15 | .toUpperCase() |
| 16 | .padStart(byteCount * 2, "0")}`; |
| 17 | }; |
| 18 | |
| 19 | export const arrayFromAsync = async <T>( |
| 20 | iterator: AsyncIterableIterator<T> |
no outgoing calls
no test coverage detected