Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0
Firefox 99
Linux
Desktop
2 years ago
Test name Executions per second
Array.isArray 123665208.0 Ops/sec
instanceof 26645482.0 Ops/sec
[].constructor 54700752.0 Ops/sec
Object.prototype.toString 13012241.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString