Merge pull request #35 from seoul2045/solutions

Reduce Method Solution
This commit is contained in:
Cody Loyd 2019-11-27 09:13:51 -06:00 committed by GitHub
commit abcaeb918a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ function subtract(a, b) {
}
function sum(array) {
return array.reduce((current, total) => total + current, 0);
return array.reduce((total, current) => total + current, 0);
}
function multiply(array) {