From a71bffa5e3515c83023595e2716fee3bc75da7e5 Mon Sep 17 00:00:00 2001 From: Oliver THEBAULT Date: Sun, 24 Apr 2016 19:48:45 +0200 Subject: [PATCH] Fix README "4.5" bad reduce example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e89d3b3b..2f3e7e8e 100644 --- a/README.md +++ b/README.md @@ -379,7 +379,7 @@ Other Style Guides const flat = {}; [[0, 1], [2, 3], [4, 5]].reduce((memo, item, index) => { const flatten = memo.concat(item); - flat[index] = memo.concat(item); + flat[index] = flatten; }); // good