<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [ATypedArrayTuple](./rc-js-util.atypedarraytuple.md) &gt; [map](./rc-js-util.atypedarraytuple.map.md)

## ATypedArrayTuple.map() method

Calls a defined callback function on each element of an array, and returns an array that contains the results.

**Signature:**

```typescript
map(_callbackfn: (value: number, index: TExtractIndexes<this>, array: this) => number, _thisArg?: unknown): this;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

\_callbackfn


</td><td>

(value: number, index: [TExtractIndexes](./rc-js-util.textractindexes.md)<!-- -->&lt;this&gt;, array: this) =&gt; number


</td><td>

A function that accepts up to three arguments. The map method 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:**

this

