Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.1 Safari/605.1.15
Safari 12
Mac OS X 10.12.6
Desktop
4 years ago
Test name Executions per second
Array.some 110560.0 Ops/sec
Array.filter 36970.2 Ops/sec
Array.indexOf 241899.9 Ops/sec
Array.includes 46405.5 Ops/sec
Array.find 192138.8 Ops/sec
Script Preparation code:
Tests:
  • Array.some

  • Array.filter

  • Array.indexOf

  • Array.includes

  • Array.find