Skip to content

Instantly share code, notes, and snippets.

@bmorelli25
Created December 18, 2017 18:50
Show Gist options
  • Save bmorelli25/c2c30df86338000a061ba8dff19eb654 to your computer and use it in GitHub Desktop.
Save bmorelli25/c2c30df86338000a061ba8dff19eb654 to your computer and use it in GitHub Desktop.
Array Max
const arrMax = arr => Math.max(...arr);
// arrMax([20, 10, 5, 10]) -> 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment