Skip to content

Instantly share code, notes, and snippets.

@reime005
Created December 27, 2020 23:04
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 reime005/ff9a3dc8f294f9691782cc9b27e6b87f to your computer and use it in GitHub Desktop.
Save reime005/ff9a3dc8f294f9691782cc9b27e6b87f to your computer and use it in GitHub Desktop.
const someSumFunction = (...args) => {
return args.reduce((sum, value) => sum + value)
}
console.log(someSumFunction(1, 2, 3));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment