Run details:
Mozilla/5.0 (Linux; Android 10; VOG-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.101 Mobile Safari/537.36
Chrome Mobile 87
Android
Mobile
4 years ago
Test name Executions per second
Array.isArray 6333947.5 Ops/sec
instanceof 2053728.9 Ops/sec
[].constructor 2293446.0 Ops/sec
Object.prototype.toString 2818650.8 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString