Skip to content

Instantly share code, notes, and snippets.

@skeggse
Created August 9, 2014 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skeggse/92e37715821f4347e3b2 to your computer and use it in GitHub Desktop.
Save skeggse/92e37715821f4347e3b2 to your computer and use it in GitHub Desktop.
function append(dest) {
for (var i = 1, n = arguments.length; i < n; i++) {
var src = arguments[i], offset = dest.length;
dest.length += src.length;
for (var j = 0, l = src.length; j < l; j++) {
dest[offset++] = src[j];
}
}
return dest;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment