js-util

Home > rc-js-util > ATypedArrayTuple > indexOf

ATypedArrayTuple.indexOf() method

Returns the index of the first occurrence of a value in an array.

Signature:

indexOf(_searchElement: number, _fromIndex?: number): number;

Parameters

Parameter Type Description
_searchElement number The value to locate in the array.
_fromIndex number (Optional) The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

Returns:

number