Reduce context parameter

Andrea Giammarchi andrea.giammarchi at
Mon Jan 7 16:18:11 PST 2013

but this is wrong
array.reduce(cb, array[0], ctx);

since index 0 will be looped so first call previous and current will be the
same ... right ? That's why I've used undefined but I understand your
concern so, as it is right now, there's no way to implement the context in
both reduce and reduceRight ... Peter van der Zee use bind :D

On Mon, Jan 7, 2013 at 3:41 PM, Rick Waldron <waldron.rick at> wrote:

> array.reduce(cb, array[0], ctx);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list