rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
70 lines (33 loc) • 1.18 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [ATypedArrayTuple](./rc-js-util.atypedarraytuple.md) > [forEach](./rc-js-util.atypedarraytuple.foreach.md)
## ATypedArrayTuple.forEach() method
Performs the specified action for each element in an array.
**Signature:**
```typescript
forEach(_callbackfn: (value: number, index: number, array: this) => void, _thisArg?: unknown): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
\_callbackfn
</td><td>
(value: number, index: number, array: this) => void
</td><td>
A function that accepts up to three arguments. forEach calls the \_callbackfn function one time for each element in the array.
</td></tr>
<tr><td>
\_thisArg
</td><td>
unknown
</td><td>
_(Optional)_ An object to which the this keyword can refer in the \_callbackfn function. If \_thisArg is omitted, undefined is used as the this value.
</td></tr>
</tbody></table>
**Returns:**
void