v3.1.2
This method returns the index of the first element in the array that satisfies the provided testing function.