Skip to content

Instantly share code, notes, and snippets.

@fatgy
Created August 13, 2013 03:10
Show Gist options
  • Save fatgy/6217569 to your computer and use it in GitHub Desktop.
Save fatgy/6217569 to your computer and use it in GitHub Desktop.
var mergeTo = [4,5,6];
var mergeFrom = [7,8,9];
Array.prototype.push.apply(mergeTo, mergeFrom);
mergeTo; // is: [4, 5, 6, 7, 8, 9]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment