findLastIndex() method returns the index of the last element that passes test from provided function. Semantically the same as ↴
findLastIndex() method returns the index of the first element from the end of array that passes test from provided function.
findLastIndex() method iterates the array in reverse order.
syntax ↴
findLastIndex(callbackFn) A function to execute for each element in the array ↴
function is called with the following arguments ↴
findLastIndex(function(element, index, array), thisArg) ↴
callback function allows access to each element, the index, and the original array itself.
thisArg (optional). Value to use as this when executing callbackFn. By default, it is undefined.
findLastIndex() method returns the index (position) of the last element that passes test from provided function.
findLastIndex() method returns -1 if no match is found.
findLastIndex() method does not execute the function for empty array elements.
findLastIndex() method does not change the original array.
findLast() method returns the last element that satisfies the testing function (rather than its index).
myArray.findLastIndex(callbackFn)