Implement myForEach(arr, callback)
Write myForEach(arr, callback) that calls callback(item, index, array) once per element, purely for side effects. Unlike myMap, it doesn't build a new array — it returns undefined.
myForEach([1, 2, 3], (n) => console.log(n));