Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36
Chrome 88
Mac OS X 10.15.1
Desktop
3 years ago
Test name Executions per second
Array.isArray 16524295.0 Ops/sec
instanceof 4968190.0 Ops/sec
[].constructor 5112778.5 Ops/sec
Object.prototype.toString 7251713.5 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString


;