Created
December 7, 2011 22:03
-
-
Save findzen/1444907 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
// returns max value in array | |
Array.max = function(array) { | |
return Math.max.apply(Math, array); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment