Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 Edg/112.0.1722.58
Chrome 112
Windows
Desktop
one year ago
Test name Executions per second
isArray 119187.4 Ops/sec
instanceof 112075.9 Ops/sec
Symbol.iterator 73032.0 Ops/sec
Object.prototype.toString.call 91378.8 Ops/sec
Script Preparation code:
Tests:
  • isArray

  • instanceof

  • Symbol.iterator

  • Object.prototype.toString.call