coderef

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: 155
Edge
12–96Not supported
97+Supportedsince Jan 6, 2022
Current: 154
Firefox
1–103Not supported
104+Supportedsince Aug 23, 2022
Current: 157
Safari
1–15.3Not supported
15.4+Supportedsince Mar 14, 2022
Current: 27
MobileChrome Android
18–96Not supported
97+Supportedsince Jan 4, 2022
Current: 155
Firefox Android
4–103Not supported
104+Supportedsince Aug 23, 2022
Current: 157
Safari iOS
1–15.3Not supported
15.4+Supportedsince Mar 14, 2022
Current: 27

How 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); // 2

Feature 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-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
Array.findLast979710415.49710415.4
Array.findLastIndex979710415.49710415.4
TypedArray.findLast979710415.49710415.4
TypedArray.findLastIndex979710415.49710415.4