Skip to content

Instantly share code, notes, and snippets.

@behnammodi
Last active August 29, 2019 17:10
Show Gist options
  • Save behnammodi/09b4bb03ca4dca675c0bef105f97863a to your computer and use it in GitHub Desktop.
Save behnammodi/09b4bb03ca4dca675c0bef105f97863a to your computer and use it in GitHub Desktop.
function sum(...num){
return num.reduce((a,b)=>a+b,0)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment