Skip to content

Instantly share code, notes, and snippets.

@radicalsauce
Last active October 7, 2015 01:07
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 radicalsauce/c79f05790447a2d790ff to your computer and use it in GitHub Desktop.
Save radicalsauce/c79f05790447a2d790ff to your computer and use it in GitHub Desktop.
Javascript Concat()
// A recreation of the native JS string method
// Accepts as many string arguments as you can feed it, returns concatenated string
// K.R. Hale
var concat = function() {
var result = "";
for(var i = 0; i < arguments.length; i++) {
result += arguments[i];
}
return result;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment