mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Update typedarray-to-string.md (#7453)
This commit is contained in:
@@ -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"
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user