Skip to content

Instantly share code, notes, and snippets.

@MasatoraSakikoyama
Created March 10, 2017 14:10
Show Gist options
  • Save MasatoraSakikoyama/0932f822f3533bb693f3cc2c76174186 to your computer and use it in GitHub Desktop.
Save MasatoraSakikoyama/0932f822f3533bb693f3cc2c76174186 to your computer and use it in GitHub Desktop.
Array.prototype.sum = function() {
return this.reduce((prev, curr) => prev + curr);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment