Last active
March 18, 2019 17:39
-
-
Save ferfabricio/2d03e2f93aec2a62e79e2c98ac8f6dc8 to your computer and use it in GitHub Desktop.
Spread operator
This file contains 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
function teste(a, b, ...c) { | |
console.log(a, b, c) | |
} | |
teste(1, 2, 3, 4, 5, 6, 7, 8) | |
// Resultado: | |
// 1 2 [ 3, 4, 5, 6, 7, 8 ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment