Created
June 17, 2017 02:21
-
-
Save Daniel-Hug/0b1021b6446a2fb2c8b33bbf5ff7c585 to your computer and use it in GitHub Desktop.
JS function: get max value from array
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
function arrayMax(array) { | |
return Math.max.apply(null, array); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment