Skip to content

Instantly share code, notes, and snippets.

@paatsinsuwan
Created July 31, 2011 23:30
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 paatsinsuwan/1117344 to your computer and use it in GitHub Desktop.
Save paatsinsuwan/1117344 to your computer and use it in GitHub Desktop.
easier method for join the array
Array.prototype.implode = function(character){
result = "";
for(k = 0; k < this.length; k++){
result += this[k]+character;
}
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment