Skip to content

Instantly share code, notes, and snippets.

@vikikamath
Last active June 24, 2019 01:14
Show Gist options
  • Save vikikamath/78b05a0e4d8f23e871c9 to your computer and use it in GitHub Desktop.
Save vikikamath/78b05a0e4d8f23e871c9 to your computer and use it in GitHub Desktop.
Reduce Array to Max
[5, 45, 53,2, 43,21].reduce((max, current) => maax > current ? max : current, -Infinity);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment