Fix README "4.5" bad reduce example

This commit is contained in:
Oliver THEBAULT
2016-04-24 19:48:45 +02:00
parent 79af88d9d6
commit a71bffa5e3

View File

@@ -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