Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36
Chrome 88
Mac OS X 10.14.3
Desktop
3 years ago
Test name Executions per second
Array.isArray 11984807.0 Ops/sec
instanceof 3769935.0 Ops/sec
[].constructor 3951680.0 Ops/sec
Object.prototype.toString 5430563.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString