js-util

Home > rc-js-util > ATypedArrayTuple > subarray

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:

subarray(_begin: number, _end?: number): TDecayedTypedArrayTuple;

Parameters

Parameter Type Description
_begin number The index of the beginning of the array.
_end number (Optional) The index of the end of the array.

Returns:

TDecayedTypedArrayTuple