Skip to content

Instantly share code, notes, and snippets.

@darksh3ll
Created June 15, 2018 08:21
Show Gist options
  • Select an option

  • Save darksh3ll/bd003fca0aba32716c7d69b4050d413d to your computer and use it in GitHub Desktop.

Select an option

Save darksh3ll/bd003fca0aba32716c7d69b4050d413d to your computer and use it in GitHub Desktop.
Functions Math.min et max avec le destructuring
const arr = [12,23,35,69,85]
console.log(Math.min(...arr)); // Renvoie 12
console.log(Math.max(...arr));// Renvoie 85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment