Run details:
Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36
Chrome 66
Windows 8
Other
6 years ago
Test name Executions per second
Array.isArray 4644563.5 Ops/sec
instanceof 1603919.8 Ops/sec
[].constructor 1691230.4 Ops/sec
Object.prototype.toString 2454445.2 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString


;