<!-- 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; [subarray](./rc-js-util.atypedarraytuple.subarray.md)

## ATypedArrayTuple.subarray() method

Gets a new this view of the ArrayBuffer store for this array, referencing the elements at begin, inclusive, up to end, exclusive.

**Signature:**

```typescript
subarray(_begin: number, _end?: number): TDecayedTypedArrayTuple;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

\_begin


</td><td>

number


</td><td>

The index of the beginning of the array.


</td></tr>
<tr><td>

\_end


</td><td>

number


</td><td>

_(Optional)_ The index of the end of the array.


</td></tr>
</tbody></table>
**Returns:**

[TDecayedTypedArrayTuple](./rc-js-util.tdecayedtypedarraytuple.md)

