Last active
June 24, 2019 01:14
-
-
Save vikikamath/78b05a0e4d8f23e871c9 to your computer and use it in GitHub Desktop.
Reduce Array to Max
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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