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 5194720.0 Ops/sec
instanceof 1249682.0 Ops/sec
[].constructor 1636739.5 Ops/sec
Object.prototype.toString 2460168.8 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString