Created
November 7, 2016 07:21
-
-
Save victorvhpg/5514de0e1834df64c855580b3a95faeb to your computer and use it in GitHub Desktop.
spread.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let arrayValores = [5, 50, 25, 100] | |
console.log(Math.max(...arrayValores)); // 100 | |
//equivalente: | |
Math.max(5, 50, 25, 100); | |
//ou | |
Math.max.apply(Math, arrayValores); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment