Created
May 21, 2013 07:17
-
-
Save PatrickJS/5618039 to your computer and use it in GitHub Desktop.
Append an array to another array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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