Skip to content

Instantly share code, notes, and snippets.

@maxmckenzie
Last active July 29, 2019 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxmckenzie/89b733ac8739e9dd3cc03d5e6c946ff1 to your computer and use it in GitHub Desktop.
Save maxmckenzie/89b733ac8739e9dd3cc03d5e6c946ff1 to your computer and use it in GitHub Desktop.
spread operators snippet #esnext
// 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