Array find() and findIndex()Baseline · Widely available
The find() and findIndex() methods of arrays and typed arrays search an array 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 Sep 20, 2016. Widely available since Mar 20, 2019.
Browser support
DesktopChrome
1–44Not supported
45+Supportedsince Sep 1, 2015
Current: 155Edge
12+Supportedsince Jul 29, 2015
Current: 154Firefox
1–36Not supported
37+Supportedsince Mar 31, 2015
Current: 157Safari
1–9.1Not supported
10+Supportedsince Sep 20, 2016
Current: 27MobileChrome Android
18–44Not supported
45+Supportedsince Sep 1, 2015
Current: 155Firefox Android
4–36Not supported
37+Supportedsince Mar 31, 2015
Current: 157Safari iOS
1–9.3Not supported
10+Supportedsince Sep 13, 2016
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: find.
Feature detection
JS · check before using
if ("find" in Array || ("prototype" in Array && "find" in Array.prototype)) {
// Array.find 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.find | 45 | 12 | 25 | 8 | 45 | 4 | 8 |
| Array.findIndex | 45 | 12 | 25 | 8 | 45 | 4 | 8 |
| TypedArray.find | 45 | 12 | 37 | 10 | 45 | 37 | 10 |
| TypedArray.findIndex | 45 | 12 | 37 | 10 | 45 | 37 | 10 |