Created
August 1, 2016 03:55
-
-
Save Obooman/56a842b36589f292b5489a0b924058b1 to your computer and use it in GitHub Desktop.
Get max value of an array.Use apply.
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
| function maxInArray( array ){ | |
| return Math.max.apply([], array) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment