Skip to content

Instantly share code, notes, and snippets.

@aurelian
Created September 17, 2012 17:01
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 aurelian/3738497 to your computer and use it in GitHub Desktop.
Save aurelian/3738497 to your computer and use it in GitHub Desktop.
Array.prototype.join = function(val) { var res = ""; var sep = (val === undefined)?"\0":val; this.forEach(function(el){ res+= el.toString() + sep }); return res.slice(0, -1*sep.length);}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment