Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0
Firefox 92
Fedora
Desktop
3 years ago
Test name Executions per second
Array.isArray 69353600.0 Ops/sec
instanceof 54954412.0 Ops/sec
[].constructor 72762488.0 Ops/sec
Object.prototype.toString 27924298.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString