I want to find an index that is a first element satisfied condition by using Array find() method in Javascript. I thought it would return 2 as a result. But the output is 3.