Let's say I need to loop through a list of items and perform various actions based on inputs, the code is much cleaner if a separate the actions into their own functions, I would need to pass the counter into the functions as a param. Would anyone here say that is bad practice? i.e., for (let i = 0: i < something.length; i++) and pass the i variable into a function?