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.03 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) > [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)