Run details:
Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Chrome 87
Windows 8
Desktop
4 years ago
Test name Executions per second
Array.some 45940.2 Ops/sec
Array.filter 15838.2 Ops/sec
Array.indexOf 71081.6 Ops/sec
Array.includes 784444.8 Ops/sec
Script Preparation code:
Tests:
  • Array.some

  • Array.filter

  • Array.indexOf

  • Array.includes