On Monday, January 7, 2013, Andrea Giammarchi wrote: > 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 >
Yeah, you'd need to mess it up further array.slice(1).reduce... Even less worth it now Rick > > > > On Mon, Jan 7, 2013 at 3:41 PM, Rick Waldron > <[email protected]<javascript:_e({}, 'cvml', '[email protected]');> > > wrote: > >> array.reduce(cb, array[0], ctx); > > >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

