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 5394955.5 Ops/sec
instanceof 1774196.6 Ops/sec
[].constructor 1709255.1 Ops/sec
Object.prototype.toString 2613241.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString


;