(value: number)
| 184 | const B64_DIGITS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; |
| 185 | |
| 186 | function toBase64Digit(value: number): string { |
| 187 | if (value < 0 || value >= 64) { |
| 188 | throw new Error(`Can only encode value in the range [0, 63]`); |
| 189 | } |
| 190 | |
| 191 | return B64_DIGITS[value]; |
| 192 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…