Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0
Firefox 68
Windows
Desktop
5 years ago
Test name Executions per second
Object.hasOwnProperty 17394126.0 Ops/sec
Object in 17234948.0 Ops/sec
Array.indexOf 571763.3 Ops/sec
direct 17276848.0 Ops/sec
Array includes 556332.2 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes