js-util

Home > rc-js-util > ATypedArrayTuple > set

ATypedArrayTuple.set() method

Sets a value or an array of values. Where an offset is not provided the array must be a tuple of the same length. To perform a partial write from the start of the array, set an offset of 0.

Signature:

set(_array: TTupleLikeOfLength<number, TLength>): void;

Parameters

Parameter Type Description
_array TTupleLikeOfLength<number, TLength> A tuple of size equal to that which is being set.

Returns:

void