Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

Array.prototype.findLast()

2 tags 1 category

The findLast() method of Array instances iterates the array in reverse order and returns the value of the first element that satisfies the provided testing function. If no elements satisfy the testing function, undefined is returned.

the first element that matches, use find(). the index of the last matching element in the array, use findLastIndex(). the index of a value, use indexOf(). (It’s similar to findIndex(), but checks each element for equality with the value instead of using a testing function.) whether a value exists in an array, use includes(). Again, it checks each element for equality with the value instead of using a testing function. if any element satisfies the provided testing function, use some().

Syntax example: findLast(callbackFn)

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…