On 9/30/06, Boczek <[EMAIL PROTECTED]> wrote: > > Like in firefox's JavaScript 1.5 > > '''callback is invoked with three arguments: the value of the element, > the index of the element, and the Array object being traversed.''' > > http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Objects:Array:forEach > > I think this small addition will make JavaScript suck less ;)
forEach works on iterables, not arrays. You can't really do anything interesting having access to the iterable. Why do you want access to the Array anyway? It seems like a pretty bad idea, and I can't recall a time when I've ever wanted that feature in any language. -bob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit -~----------~----~----~----~------~----~------~--~---
