Skip to content

Instantly share code, notes, and snippets.

@noorfathima11
Created January 21, 2019 11:33
Show Gist options
  • Save noorfathima11/2b573c1c749e535c8fdbfa5378ebf3d5 to your computer and use it in GitHub Desktop.
Save noorfathima11/2b573c1c749e535c8fdbfa5378ebf3d5 to your computer and use it in GitHub Desktop.
Sum of elements in an Array
array.reduce((a,b) => a+b);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment