Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:98.0) Gecko/20100101 Firefox/98.0
Firefox 98
Linux
Desktop
2 years ago
Test name Executions per second
Array.isArray 266283344.0 Ops/sec
instanceof 54088016.0 Ops/sec
[].constructor 71855568.0 Ops/sec
Object.prototype.toString 22713710.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString