X Tutup
Skip to content

Commit 40419bd

Browse files
committed
fix failing build by appying 'standard' on file
1 parent 5e5543f commit 40419bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Project-Euler/Problem013.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ const numbers = [
108108
]
109109

110110
const findFirstTenDigitsOfSum = () => {
111-
const sum = numbers.reduce((prev, current) => current += prev, 0)
111+
const sum = numbers.reduce((prev, current) => {
112+
current += prev
113+
return current
114+
}, 0)
112115

113116
return sum.toLocaleString('fullwide', { useGrouping: false }).split('').slice(0, 10).join('')
114117
}

0 commit comments

Comments
 (0)
X Tutup