Array.forEach() et al with additional parameters

Marius Gundersen gundersen at
Mon Dec 22 06:28:24 PST 2014

doesn't fat-arrow solve this? It's not that verbose, and you can put the
arguments in any order you want

[1,2,3].forEach(element => myCallback("something else", element));

Marius Gundersen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list