Run details:
Mozilla/5.0 (Linux; Android 10; HMA-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Mobile Safari/537.36
Chrome Mobile 84
Android
Mobile
4 years ago
Test name Executions per second
Array.isArray 5142981.5 Ops/sec
instanceof 1852045.0 Ops/sec
[].constructor 1902926.5 Ops/sec
Object.prototype.toString 2350420.8 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString