Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0
Firefox 99
Linux
Desktop
2 years ago
Test name Executions per second
Array.isArray 119141552.0 Ops/sec
instanceof 21707010.0 Ops/sec
[].constructor 35604024.0 Ops/sec
Object.prototype.toString 10118004.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString


;