Clarification on function default param values

Andrea Giammarchi andrea.giammarchi at
Tue Oct 1 11:15:35 PDT 2013

I see. Does `null` count as undefined too or it must be explicitly
undefined ? not that using a transpiler this matters much ... just curious
about how the ES < 6 will look like.

On Tue, Oct 1, 2013 at 11:02 AM, Brendan Eich <brendan at> wrote:

> No, we are using undefined actual parameter value, not argument.length, to
> trigger defaulting -- as discussed many times and cited by me (again)
> recently in reply to Oliver. Please do not go backward.
> /be
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list