rest parameters

Alexander Jones alex at weej.com
Fri Oct 2 20:26:38 UTC 2015


I guess this is another reason why promisified versions are better:

```js
somethingAsync(foo, bar, ...args).then(yourCallback)
```

On 2 October 2015 at 20:31, Michaël Rouges <michael.rouges at gmail.com> wrote:

> For me, the rest parameters must be unique per arguments list but,
> logically, usable following the function requirements...
>
> A classical example, the node.js methods, which takes a callback as last
> argument, preceeded (generally) by one or more arguments, for a same method.
>
> Michaël Rouges - https://github.com/Lcfvs - @Lcfvs
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20151002/e6313032/attachment.html>


More information about the es-discuss mailing list