We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea0e4a8 commit 1d7362dCopy full SHA for 1d7362d
README.md
@@ -708,8 +708,7 @@ const programmerOutput = [
708
const INITIAL_VALUE = 0;
709
710
const totalOutput = programmerOutput
711
- .map((programmer) => programmer.linesOfCode)
712
- .reduce((acc, linesOfCode) => acc + linesOfCode, INITIAL_VALUE);
+ .reduce((acc, { linesOfCode }) => acc + linesOfCode, INITIAL_VALUE);
713
```
714
**[⬆ back to top](#table-of-contents)**
715
0 commit comments