Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
Chrome 83
Mac OS X 10.15.5
Desktop
4 years ago
Test name Executions per second
indexOf !== 83932128.0 Ops/sec
filter length > 0 30933470.0 Ops/sec
find !== undefined 5205379.0 Ops/sec
some 169861104.0 Ops/sec
! every 166526160.0 Ops/sec
lastIndexOf !== -1 44876836.0 Ops/sec
Tests:
  • indexOf !==

  • filter length > 0

  • find !== undefined

  • some

  • ! every

  • lastIndexOf !== -1