Spread and non objects

Erik Arvidsson erik.arvidsson at gmail.com
Fri Nov 5 18:19:25 PDT 2010


On Fri, Nov 5, 2010 at 17:46, Brendan Eich <brendan at mozilla.com> wrote:
> You mean
>
>  f(1, 2, ...(x || []))
>
> at least.

No need for the parens here [*]. Do you want it for readability?

[*] http://wiki.ecmascript.org/doku.php?id=harmony:spread#syntax

-- 
erik


More information about the es-discuss mailing list