Ad
  • Default User Avatar

    You are right about that, an if statement checking at the start could save a little bit of processing time in case of an odd number of items. I think for of is more style choice, nothing wrong with a basic for loop in my opinion