Skip to content

Instantly share code, notes, and snippets.

@boolpath
Created December 1, 2013 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boolpath/7726986 to your computer and use it in GitHub Desktop.
Save boolpath/7726986 to your computer and use it in GitHub Desktop.
BogotaJS
function maxZaks(array) {
var max = -Infinity;
for (var i = 0; i < array.length; i++) {
max = Math.max(array[i],max)
}
return max;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment