Skip to content

Commit 80bb0b8

Browse files
authored
Document TypedArray’s set() method (#84)
1 parent a29deb6 commit 80bb0b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/stdlib/typedarray.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ The TypedArray API works very much like JavaScript's \([MDN](https://developer.m
145145
```
146146
Reverses an array's values in place, modifying the array before returning it.
147147

148+
* ```ts
149+
function set(source: TypedArray, offset?: i32): void
150+
```
151+
Sets the typed array values (starting at `offset`, or 0), reading input values from a specified `source` typed array.
152+
148153
* ```ts
149154
function some(
150155
fn: (value: T, index: i32, self: TypedArray) => bool

0 commit comments

Comments
 (0)