Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Firefox 61
Windows
Desktop
6 years ago
Test name Executions per second
indexOf 27859.1 Ops/sec
map with forEach 605.2 Ops/sec
map with loop 627.1 Ops/sec
Script Preparation code:
Tests:
  • indexOf

  • map with forEach

  • map with loop


;