Skip to content

Instantly share code, notes, and snippets.

@danomanion
Created December 22, 2019 14:39
Show Gist options
  • Save danomanion/b00f5c6b1c49d6f638fe9435dd0b126f to your computer and use it in GitHub Desktop.
Save danomanion/b00f5c6b1c49d6f638fe9435dd0b126f to your computer and use it in GitHub Desktop.
Math.max + Spread Operator
const myArray = [39,2312,44,3,932,341238,402547,912,233,39,336568,5322130,6401,8562,42,128912,379]
const maxVal = Math.max(...myArray);
console.log(maxVal)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment