Does this for loop iterate multiple times? Languages

Does this for loop iterate multiple times?

I have been discussing some code with colleagues:A suggestion was to filter this and use a forEachThere was a discussion about iterating more than necessary. I've looked this up, and I can't find anything. I also tried to figure out how to view the optimized output, but I don't know...
Read More