JS

JavaScript ES6 - Array findindex() JavaScript Arra...

1.

What does the findIndex() method in JavaScript Array do?

It sorts the elements of an array.

It searches the array for a specified item and returns the item and its position.

It returns the index of the first element in an array that satisfies a given condition.

It returns the value of the first element in an array that satisfies a given condition.

1 / 32

Next