fix failing build by appying 'standard' on file

This commit is contained in:
Waddah
2020-10-17 23:38:44 +03:00
parent 5e5543f996
commit 40419bd21d

View File

@ -108,7 +108,10 @@ const numbers = [
]
const findFirstTenDigitsOfSum = () => {
const sum = numbers.reduce((prev, current) => current += prev, 0)
const sum = numbers.reduce((prev, current) => {
current += prev
return current
}, 0)
return sum.toLocaleString('fullwide', { useGrouping: false }).split('').slice(0, 10).join('')
}