From 72fe6956aae6943a476a5974d8a78caed829c3c9 Mon Sep 17 00:00:00 2001 From: Steve Mao Date: Mon, 10 Apr 2017 21:10:56 +1000 Subject: [PATCH] Since the definition of `reduceRight` wan't correct, the definition of `reduce` doesn't seem to be right either. Changed both to mdn's definition. --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index fdddfd9..7e1e235 100644 --- a/readme.md +++ b/readme.md @@ -800,7 +800,7 @@ An object that has a `concat` function that combines it with another object of t ## Foldable -An object that has a `reduce` function that can transform that object into some other type. +An object that has a `reduce` function that applies a function against an accumulator and each element in the array (from left to right) to reduce it to a single value. ```js const sum = (list) => list.reduce((acc, val) => acc + val, 0)