Run details:
Mozilla/5.0 (X11; CrOS x86_64 14092.77.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.107 Safari/537.36
Chrome 93
Chrome OS 14092.77.0
Desktop
3 years ago
Test name Executions per second
Array.isArray 3271616.2 Ops/sec
instanceof 1046982.7 Ops/sec
[].constructor 1054319.8 Ops/sec
Object.prototype.toString 1300715.2 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString