@@iterator in arguments object
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss