Array findLast() and findLastIndex()Baseline · Widely available
The findLast() and findLastIndex() methods of arrays and typed arrays search an array in reverse order for the first item that satisfies a test function.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Aug 23, 2022. Widely available since Feb 23, 2025.
Browser support
DesktopChrome
1–96Not supported
97+Supportedsince Jan 4, 2022
Current: 155Edge
12–96Not supported
97+Supportedsince Jan 6, 2022
Current: 154Firefox
1–103Not supported
104+Supportedsince Aug 23, 2022
Current: 157Safari
1–15.3Not supported
15.4+Supportedsince Mar 14, 2022
Current: 27MobileChrome Android
18–96Not supported
97+Supportedsince Jan 4, 2022
Current: 155Firefox Android
4–103Not supported
104+Supportedsince Aug 23, 2022
Current: 157Safari iOS
1–15.3Not supported
15.4+Supportedsince Mar 14, 2022
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
JS
const events = [{ ok: true }, { ok: false, id: 2 }, { ok: false, id: 3 }];
events.findLast((e) => !e.ok); // { ok: false, id: 3 }
events.findLastIndex((e) => !e.ok); // 2Feature detection
JS · check before using
if ("findLast" in Array || ("prototype" in Array && "findLast" in Array.prototype)) {
// Array.findLast is available
}Sub-features
Support for each part of the feature (4). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| Array.findLast | 97 | 97 | 104 | 15.4 | 97 | 104 | 15.4 |
| Array.findLastIndex | 97 | 97 | 104 | 15.4 | 97 | 104 | 15.4 |
| TypedArray.findLast | 97 | 97 | 104 | 15.4 | 97 | 104 | 15.4 |
| TypedArray.findLastIndex | 97 | 97 | 104 | 15.4 | 97 | 104 | 15.4 |