Your test function uses three arguments: - The item value - The item index - The array itself Use findIndex () to get the index of the first element that meets your condition. It also uses the three ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results