sdras/array-explorer

reduceRight wrong example?

Aperta

#78 aperta il 3 set 2018

 (3 commenti) (0 reazioni) (0 assegnatari)JavaScript (236 fork)github user discovery
good first issueopen to PR

Metriche repository

Star
 (2609 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Hello, I'm not sure, but in find items -> one item:

reduce returns sum of the array, as I'd expect, while reduceRight 'flatten' arrays. Shouldn't it be also sum?

Guida contributor