Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Chrome 89
Mac OS X 10.13.6
Desktop
3 years ago
Test name Executions per second
Array.isArray 14533964.0 Ops/sec
instanceof 4734569.5 Ops/sec
[].constructor 4901025.5 Ops/sec
Object.prototype.toString 6420572.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString


;