Skip to content

Instantly share code, notes, and snippets.

@jwalsh
Created June 5, 2012 18:10
Show Gist options
  • Save jwalsh/2876634 to your computer and use it in GitHub Desktop.
Save jwalsh/2876634 to your computer and use it in GitHub Desktop.
[ 1, 5, 9, 2, 5, 0 ].reduce(function(p, c, i, a){ return c > p ? c : p; });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment