The array-like object to search.
The value to locate in the array. Values are
compared using strict === equality.
The index of the first element in the range to be
searched, inclusive. The default value is -1. Negative values
are taken as an offset from the end of the array.
The index of the last element in the range to be
searched, inclusive. The default value is 0. Negative values
are taken as an offset from the end of the array.
Generated using TypeDoc
Find the index of the last occurrence of a value in an array.
Returns
The index of the last occurrence of the value, or
-1if the value is not found.Notes
If
start < stopthe search will wrap at the front of the array.Complexity
Linear.
Undefined Behavior
A
startorstopwhich is non-integral.Example