Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36
Chrome 73
Linux
Desktop
5 years ago
Test name Executions per second
Object.hasOwnProperty 3948938.2 Ops/sec
Object in 3068322.5 Ops/sec
Array.indexOf 706510.2 Ops/sec
direct 4158240.2 Ops/sec
Array includes 701635.1 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes