Array.forEach() et al with additional parameters

Marius Gundersen gundersen at gmail.com
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

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

Marius Gundersen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141222/95cc736a/attachment.html>


More information about the es-discuss mailing list