Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36
Chrome 84
Linux
Desktop
4 years ago
Test name Executions per second
indexOf !== 54458888.0 Ops/sec
filter length > 0 25565680.0 Ops/sec
find !== undefined 5457225.0 Ops/sec
some 138531024.0 Ops/sec
! every 137992576.0 Ops/sec
lastIndexOf !== -1 20325306.0 Ops/sec
Tests:
  • indexOf !==

  • filter length > 0

  • find !== undefined

  • some

  • ! every

  • lastIndexOf !== -1