Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0
Firefox 96
Linux
Desktop
2 years ago
Test name Executions per second
Array.isArray 203729168.0 Ops/sec
instanceof 41760072.0 Ops/sec
[].constructor 52839040.0 Ops/sec
Object.prototype.toString 17373778.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString