JavaScript Array findLast() method
return the value of the last element that passes test from provided function

findLast() method returns the value of the last element that passes test from provided function. Semantically the same as ↴

findLast() method returns the value of the first element from end of array that passes test from provided function.

findLast() method iterates the array in reverse order.

syntax

findLast(callbackFn) A function to execute for each element in the array ↴

function is called with the following arguments ↴

findLast(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.

findLast() method returns the value of the last element that passes test from provided function.

findLast() method returns the last (highest-index) element in the array that satisfies the provided function.

findLast() method returns undefined if no elements pass the test from provided function.

findLast() method does not execute the function for empty array elements.

findLast() method does not change the original array.

findLastIndex() method returns the last index that satisfies the testing function (rather than the last element).

syntax description
return value of the the last element in myArray that passes test from provided callback function
myArray.findLast(callbackFn)