Course contentsShow
JavaScript
Lesson 474 of 2,72312. Higher-Order FunctionsPro lesson

The FindIndex Method

Use Array.findIndex() to get the index of the first element passing a test, returning -1 if none match.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.