sdras/array-explorer

reduceRight wrong example?

Open

#78 opened on Sep 3, 2018

 (3 comments) (0 reactions) (0 assignees)JavaScript (236 forks)github user discovery
good first issueopen to PR

Repository metrics

Stars
 (2,609 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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?

Contributor guide