Created
December 18, 2017 18:50
-
-
Save bmorelli25/c2c30df86338000a061ba8dff19eb654 to your computer and use it in GitHub Desktop.
Array Max
This file contains hidden or 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
| const arrMax = arr => Math.max(...arr); | |
| // arrMax([20, 10, 5, 10]) -> 20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment