[guide] Typo fix on example

This commit is contained in:
Chaitanya Mutyala
2017-07-12 10:43:11 -07:00
committed by Felipe Vargas
parent 22c97fa678
commit 6331c2c3e2

View File

@@ -1391,7 +1391,7 @@ Other Style Guides
const increasedByOne = [];
numbers.forEach((num) => {
increasedByOne.push(num + 1);
);
});
// best (keeping it functional)
const increasedByOne = numbers.map(num => num + 1);