Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:107.0) Gecko/20100101 Firefox/107.0
Firefox 107
Ubuntu
Desktop
11 months ago
Test name Executions per second
Array.isArray 246581360.0 Ops/sec
instanceof 57949520.0 Ops/sec
[].constructor 89869968.0 Ops/sec
Object.prototype.toString 49408300.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString


;