Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0
Firefox 121
Linux
Desktop
6 months ago
Test name Executions per second
Array.isArray 702955136.0 Ops/sec
instanceof 187580160.0 Ops/sec
[].constructor 470523776.0 Ops/sec
Object.prototype.toString 174683856.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString