Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:48.0) Gecko/20100101 Firefox/48.0
Firefox 48
Mac OS X 10.6
Desktop
one year ago
Test name Executions per second
array length !==0 9447.1 Ops/sec
array length > 0 10589.5 Ops/sec
array length 10925.4 Ops/sec
Script Preparation code:
Tests:
  • array length !==0

  • array length > 0

  • array length