Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0
Firefox 108
Linux
Desktop
2 years ago
Test name Executions per second
Test1 1154180992.0 Ops/sec
Test2 854079168.0 Ops/sec
Script Preparation code:
AخA
 
var newArr = ['1', '2', '3', '4'];
Tests:
  • Test1

     
    !!newArr.length
  • Test2

     
    Boolean(newArr.length)