Update typedarray-to-string.md (#7453)

This commit is contained in:
Max Kayander
2023-12-04 20:43:42 +03:00
committed by GitHub
parent df17598026
commit 2ff788f463

View File

@@ -7,7 +7,7 @@ Bun implements the Web-standard [`TextDecoder`](https://developer.mozilla.org/en
```ts
const arr = new Uint8Array([104, 101, 108, 108, 111]);
const decoder = new TextDecoder();
const str = decoder.decode(buf);
const str = decoder.decode(arr);
// => "hello"
```