Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.188
Chrome 115
Windows
Desktop
one year ago
Test name Executions per second
Array.isArray 29110898.0 Ops/sec
instanceof 10304878.0 Ops/sec
[].constructor 10666068.0 Ops/sec
Object.prototype.toString 12964327.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString


;