Skip to content

Instantly share code, notes, and snippets.

@evilboss
Last active December 9, 2019 14:14
Show Gist options
  • Save evilboss/3a71f22ec058685c890967fc05af674e to your computer and use it in GitHub Desktop.
Save evilboss/3a71f22ec058685c890967fc05af674e to your computer and use it in GitHub Desktop.
combine arrays
let firstDay = ['ip1', 'ip2', 'ip3']
let secondDay = ['ipx', 'ipy', 'ipz']
console.log([...firstDay, ...secondDay]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment