sdras/array-explorer

reduceRight wrong example?

オープン

#78 opened on 2018/09/03

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (236 件のフォーク)github user discovery
good first issueopen to PR

Repository metrics

Stars
 (2,609 個のスター)
PR merge metrics
 (30d に merged 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?

コントリビューターガイド