WeCodeAcademy
❮ includes()findIndex() ❯

find()

The first item that passes a test.

Group: Array

Syntax

array.find(fn)

Example

Examplejavascript
Open in editor »

← All of JavaScript Reference