Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
Firefox 91
Fedora
Desktop
3 years ago
Test name Executions per second
Array.isArray 135962128.0 Ops/sec
instanceof 62067336.0 Ops/sec
[].constructor 153809280.0 Ops/sec
Object.prototype.toString 21879256.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString