There was an error while loading. Please reload this page.
1 parent f842e8a commit 949bab4Copy full SHA for 949bab4
src/challenges/01-plus-minus/plus-minus.ts
@@ -38,7 +38,7 @@ export const plusMinus = (inputArray: number[]): string => {
38
[0, 0, 0]
39
)
40
.reduce(
41
- (acc, value) => (acc += `${(value / inputArray.length).toFixed(6)}\n`),
+ (acc, value) => acc + `${(value / inputArray.length).toFixed(6)}\n`,
42
""
43
);
44
};
0 commit comments