The array or array like object of elements to be searched.
The element to locate in the array.
Optional
fromIndex: numberZero-based index at which to start searching backwards, converted to an integer.
The first index of the element in the array; -1 if not found.
The arrLastIndexOf() method returns the last index at which a given element can be found in the array, or -1 if it is not present.
arrLastIndexOf()
compares searchElement to elements of the Array using strict equality (the same method used by the === or triple-equals operator). NaN values are never compared as equal, so arrLastIndexOf() always returns -1 when searchElement is NaN.The arrLastIndexOf() method skips empty slots in sparse arrays.
The arrLastIndexOf() method is generic. It only expects the this value to have a length property and integer-keyed properties.
Since
0.8.0
Example