I know that forEach in JavaScript calls my callback function with three parameters:
arr.forEach(function callback(currentValue, index, array) {
//your iterator
})
In the above example arr and array are same array and arr exists in the callback function closure.
Now the question is what is the point of passing array to the callback function?
[1,2,3].forEach(function (elem, index, arrayReference) { ... });