Can't do push in forEach
erik.arvidsson at gmail.com
Thu May 14 14:49:11 UTC 2015
Still, the callback for forEach is called with 3 arguments; value, index
and the array.
This is clearly documented in the spec and mdn and other resources.
On Thu, May 14, 2015, 10:42 Garrett Smith <dhtmlkitchen at gmail.com> wrote:
> On 5/14/15, Emanuel Allen <emanuelallen at hotmail.com> wrote:
> > Surprise that I can't do arr1.forEeach(arr2.push);
> Check that line more carefully.
> > Will throw an error.
> > Using bind as:
> > push = arr2.bind(push);
> Arrays don't have a bind method.
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss