Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_16_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.87 Safari/537.36
Chrome 78
Mac OS X 10.16.0
Desktop
3 years ago
Test name Executions per second
Array.some 180550.9 Ops/sec
Array.filter 36634.5 Ops/sec
Array.indexOf 124405.5 Ops/sec
Array.includes 1417190.1 Ops/sec
Array.find 180167.8 Ops/sec
Script Preparation code:
Tests:
  • Array.some

  • Array.filter

  • Array.indexOf

  • Array.includes

  • Array.find