Skip to content

Instantly share code, notes, and snippets.

@granmoe
Last active April 16, 2018 02:08
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 granmoe/9cd15f3cc6ac7ead9a04e1dd73c8600d to your computer and use it in GitHub Desktop.
Save granmoe/9cd15f3cc6ac7ead9a04e1dd73c8600d to your computer and use it in GitHub Desktop.
const sum = reduce((accum, current) => accum + current, 0)
sum([1, 2, 3]) // 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment