The type of elements in the input array.
The array to search within.
The function to test each element for a condition.
The last element in the array that satisfies the provided testing function. Otherwise, undefined if no elements satisfy the testing function.
const numbers = [1, 2, 3, 4, 5, 6];
arrFindLast(numbers, num => num % 2 === 0);
//=> 6
Generated using TypeDoc
Searches for the last element in an array that satisfies a provided testing function.