Skip to content

Instantly share code, notes, and snippets.

@kunigami
Created June 11, 2018 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunigami/7d382a8d7b5b14ad7c3a18ea80ccda8f to your computer and use it in GitHub Desktop.
Save kunigami/7d382a8d7b5b14ad7c3a18ea80ccda8f to your computer and use it in GitHub Desktop.
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