Function That Takes an Array: A Terrible Coding Practice

Throwaway123456 has been caught red-handed attempting to use the following function:

function doSomethingWithStuff(array) { for (let i = 0; i < array.length; i++) { console.log(array[i]); } }

A better approach would be to use ForEach is Your Friend.

But no, Throwaway123456 insisted on using a for loop, because Looping is Better Than ForEach.