Skip to content

Instantly share code, notes, and snippets.

@CodHeK
Created August 16, 2018 11:32
Show Gist options
  • Save CodHeK/cc24f37f237d1ce4dc40264c51fa63de to your computer and use it in GitHub Desktop.
Save CodHeK/cc24f37f237d1ce4dc40264c51fa63de to your computer and use it in GitHub Desktop.
spread operator
let nums = [1, 2, 3, 4, 5]
console.log(Math.max(...nums)) //prints 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment