Skip to content

Commit 949bab4

Browse files
author
Jakub Jirous
committed
1) plus minus - remove code smell
1 parent f842e8a commit 949bab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/challenges/01-plus-minus/plus-minus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const plusMinus = (inputArray: number[]): string => {
3838
[0, 0, 0]
3939
)
4040
.reduce(
41-
(acc, value) => (acc += `${(value / inputArray.length).toFixed(6)}\n`),
41+
(acc, value) => acc + `${(value / inputArray.length).toFixed(6)}\n`,
4242
""
4343
);
4444
};

0 commit comments

Comments
 (0)