Javascript's array iteration functions (forEach, every, some etc.) allow you to pass three arguments: the current item, the current index and the array being operated on.
My question is: what benefits are there to operating on the array as an argument, vs. accessing it via the closure?
Why should I use this:
myArray.forEach(function(item, i, arr) {doSomething(arr);});
Instead of this:
myArray.forEach(function(item, i) {doSomething(myArray);});

.forEachin the first place?