How to get index by using Array find() method in Javascript

后端 未结 0 1006
谎友^
谎友^ 2020-12-25 09:38

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.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题