Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 OPR/108.0.0.0
Opera 108
Windows
Desktop
7 months ago
Test name Executions per second
Array.isArray 37466468.0 Ops/sec
instanceof 13696558.0 Ops/sec
[].constructor 14203221.0 Ops/sec
Object.prototype.toString 17649038.0 Ops/sec
Script Preparation code:
Tests:
  • Array.isArray

  • instanceof

  • [].constructor

  • Object.prototype.toString


;