Last active
October 7, 2015 01:07
-
-
Save radicalsauce/c79f05790447a2d790ff to your computer and use it in GitHub Desktop.
Javascript Concat()
This file contains hidden or 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
// 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