Run details:
Mozilla/5.0 (Linux; Android 10; Pixel 3a) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.101 Mobile Safari/537.36
Chrome Mobile 85
Android
Mobile
4 years ago
Test name Executions per second
Array.isArray 4717989.5 Ops/sec
instanceof 1624026.1 Ops/sec
[].constructor 1675000.4 Ops/sec
Object.prototype.toString 2127911.8 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString


;