Sobes.tech
Junior

What does the findIndex method return?

sobes.tech AI

Answer from AI

The findIndex() method returns the index of the first element in the array that satisfies the provided testing function. If no elements pass the test, it returns -1.