Created
June 11, 2018 05:33
-
-
Save kunigami/7d382a8d7b5b14ad7c3a18ea80ccda8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sum(arr) { | |
return arr.reduce((function (prim, prim$1) { | |
return prim + prim$1 | 0; | |
}), 0); | |
} | |
console.log(sum(/* array */[ | |
10, | |
20, | |
30 | |
])); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment