@@iterator in arguments object

Brandon Benvie brandon at brandonbenvie.com
Sun Dec 23 18:31:16 PST 2012


Er missing argument. The spec says "If an initialValue was provided in the
call to reduce, ...". The fact that undefined is different from "not
provided" is the reason you have to hack around with the argument count one
way or another.


On Sun, Dec 23, 2012 at 9:25 PM, Brandon Benvie
<brandon at brandonbenvie.com>wrote:

> Because initialValue can be a provided `undefined` in which case you would
> use that, as opposed to a missing value. The specification differentiates
> between a provided undefined and a lack of a parameter in a bunch of stdlib
> functions/methods.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121223/34a194a0/attachment.html>


More information about the es-discuss mailing list