Run details:
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36 Edg/89.0.774.75
Chrome 89
Windows 7
Desktop
3 years ago
Test name Executions per second
Array.indexOf 688889.3 Ops/sec
Array.includes 834691.7 Ops/sec
lodash includes 254570.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.indexOf

  • Array.includes

  • lodash includes