Run details:
Mozilla/5.0 (Linux; Android 12; M2102J20SI) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4710.6 Mobile Safari/537.36
Chrome Mobile 98
Android
Mobile
3 years ago
Test name Executions per second
!arr.length 2554677.2 Ops/sec
arr.length === 0 2565542.2 Ops/sec
Script Preparation code:
Tests:
  • !arr.length

  • arr.length === 0