Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:93.0) Gecko/20100101 Firefox/93.0
Firefox 93
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
Array.isArray 85111464.0 Ops/sec
instanceof 57420920.0 Ops/sec
[].constructor 88544032.0 Ops/sec
Object.prototype.toString 24233564.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString


;