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?

貢獻者指南