Skip to content

Instantly share code, notes, and snippets.

@lelouchB
Last active July 21, 2019 03:04
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 lelouchB/63c9ea71da3ade3e46e9946bb68868bd to your computer and use it in GitHub Desktop.
Save lelouchB/63c9ea71da3ade3e46e9946bb68868bd to your computer and use it in GitHub Desktop.
let firstArray = [1, 2, 3, 'Shinchan']
let secondArray = ['Nohara', 4, 5, 6]
let thirdArray = [7, 8, 9, 'Himawari']
let combinedArray = []
combinedArray.push(...firstArray, ...secondArray, ...thirdArray)
console.log(`CombinedArray = `+combinedArray)
// CombinedArray = [1,2,3,'Shinchan','Nohara',4,5,6,7,8,9,'Himawari']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment