sdras/array-explorer

reduceRight wrong example?

开放

#78 创建于 2018年9月3日

 (3 条评论) (0 个反应) (0 位负责人)JavaScript (236 个派生)github user discovery
good first issueopen to PR

仓库指标

星标
 (2,609 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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?

贡献者指南