Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0
Firefox 121
Linux
Desktop
10 months ago
Test name Executions per second
Array.isArray 376863616.0 Ops/sec
instanceof 73491648.0 Ops/sec
[].constructor 88053488.0 Ops/sec
Object.prototype.toString 65314856.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString