js-util

Home > rc-js-util > ATypedArrayTuple > lastIndexOf

ATypedArrayTuple.lastIndexOf() method

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

Signature:

lastIndexOf(_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