Skip to content

Instantly share code, notes, and snippets.

@chris-sev
Last active December 20, 2018 17:06
Show Gist options
  • Save chris-sev/412c418bb3b3985889c913a16c89ef7e to your computer and use it in GitHub Desktop.
Save chris-sev/412c418bb3b3985889c913a16c89ef7e to your computer and use it in GitHub Desktop.
Quick Example
// we have 2 arrays of people
const people = ['chris', 'nick'];
const newPeople = ['holly', 'william'];
// add them together to create a new array
const allPeople = people.concat(newPeople);
// output: ['chris', 'nick', 'holly', 'william']
console.log(allPeople);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment