From cb0f7d551bb524b8d7fa2b495bfaf26beeaf9533 Mon Sep 17 00:00:00 2001 From: Alex Schmitt <39417513+alex-schmitt@users.noreply.github.com> Date: Mon, 21 Jan 2019 11:25:38 -0600 Subject: [PATCH] remove map method in favor functional programming --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 2c1f9058..f92ce5ec 100644 --- a/README.md +++ b/README.md @@ -706,8 +706,7 @@ const programmerOutput = [ ]; const totalOutput = programmerOutput - .map(output => output.linesOfCode) - .reduce((totalLines, lines) => totalLines + lines); + .reduce((totalLines, output) => totalLines + output.linesOfCode, 0) ``` **[⬆ back to top](#table-of-contents)**