Skip to content

Commit 330e9b7

Browse files
Update fromArray.md
1 parent caa66db commit 330e9b7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/reference/buffer/fromArray.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ Allocates a new buffer from a dynamic array into bytes.
99

1010
## Example
1111
Set an array that have 5 indices into a buffer.
12+
13+
``` ts
1214
Buffer.fromArray([0, 1, 2, 3, 4])
15+
```

0 commit comments

Comments
 (0)