Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:84.0) Gecko/20100101 Firefox/84.0
Firefox 84
Mac OS X 10.16
Desktop
3 years ago
Test name Executions per second
Array.isArray 100280840.0 Ops/sec
instanceof 65621112.0 Ops/sec
[].constructor 110999128.0 Ops/sec
Object.prototype.toString 26355230.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString