Skip to content

Instantly share code, notes, and snippets.

@mateuszkocz
Created August 10, 2013 08:44
Show Gist options
  • Save mateuszkocz/6199633 to your computer and use it in GitHub Desktop.
Save mateuszkocz/6199633 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