Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102
Linux
Desktop
one year ago
Test name Executions per second
Array.isArray 247099984.0 Ops/sec
instanceof 59763136.0 Ops/sec
[].constructor 110808440.0 Ops/sec
Object.prototype.toString 52550780.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString