(string)
| 233 | } |
| 234 | |
| 235 | function stringToByteArray(string) { |
| 236 | return new TextEncoder().encode(string); |
| 237 | return Uint8Array.from(string, c => c.charCodeAt(0)); |
| 238 | } |
| 239 | |
| 240 | function byteArrayToString(bytes) { |
| 241 | return new TextDecoder().decode(bytes); |
no test coverage detected