Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.5176.137 Safari/537.36
Chrome 107
Mac OS X 10.3
Desktop
2 years ago
Test name Executions per second
findIndex 1203.4 Ops/sec
indexOf 907489.2 Ops/sec
Script Preparation code:
Tests:
  • findIndex

  • indexOf