Skip to content

Instantly share code, notes, and snippets.

@PatrickJS
Created May 21, 2013 07:17
Show Gist options
  • Save PatrickJS/5618039 to your computer and use it in GitHub Desktop.
Save PatrickJS/5618039 to your computer and use it in GitHub Desktop.
Append an array to another array
Append an array to another array
var a = [4,5,6];
var b = [7,8,9];
[].push.apply(a, b);
uneval(a); // 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