Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var myArray = [1, 2, 3];
var item = 4;
myArray.push(item); //works
var items = [5, 6, 7];
myArray.concat(items): //doesn't work
myArray = myArray.concat(items); // have to do this instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.