Last active
July 29, 2019 09:05
-
-
Save maxmckenzie/89b733ac8739e9dd3cc03d5e6c946ff1 to your computer and use it in GitHub Desktop.
spread operators snippet #esnext
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
// Spread operators baby | |
var Array = [[1, 2],[3, 4, 5], [6, 7, 8, 9]]; | |
var result = [].concat(...Array); | |
console.log(result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment