Enforcing arity?

Jason Orendorff jason.orendorff at gmail.com
Mon Jan 7 10:39:48 PST 2013


On Sun, Jan 6, 2013 at 6:31 PM, Axel Rauschmayer <axel at rauschma.de> wrote:

> What is the simplest way of enforcing an arity in ES6? Doesn’t it involve
> arguments?
>

Hmm. Can you do this?

    function f(x, y, ...[]) {}

-j
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130107/e1bcc91d/attachment.html>


More information about the es-discuss mailing list