From 4d68ddc4bb774584b50ca893887ef9219a41128a Mon Sep 17 00:00:00 2001 From: Eric Churchill Date: Sat, 10 Dec 2016 23:17:10 -0800 Subject: [PATCH] Change "modified" to "increasedByOne" to minimize ambiguity --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 621f79fe..66ea1bd3 100644 --- a/README.md +++ b/README.md @@ -1321,17 +1321,17 @@ Other Style Guides sum === 15; // bad - const modified = []; + const increasedByOne = []; for (let i = 0; i < numbers.length; i++) { modified.push(numbers[i] + 1); } // good - const modified = []; + const increasedByOne = []; numbers.forEach(num => modified.push(num + 1)); // best (keeping it functional) - const modified = numbers.map(num => num + 1); + const increasedByOne = numbers.map(num => num + 1); ```