Run details:
Mozilla/5.0 (Linux; Android 10; Redmi Note 8 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Mobile Safari/537.36
Chrome Mobile 92
Android
Mobile
3 years ago
Test name Executions per second
Array.isArray 6505230.0 Ops/sec
instanceof 2124308.2 Ops/sec
[].constructor 2346345.8 Ops/sec
Object.prototype.toString 2961445.2 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString


;