Skip to content

Instantly share code, notes, and snippets.

@dineshsprabu
Created January 1, 2016 05:20
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 dineshsprabu/1503d01ee3a4e2faeb6a to your computer and use it in GitHub Desktop.
Save dineshsprabu/1503d01ee3a4e2faeb6a to your computer and use it in GitHub Desktop.
Replace All Possibilities in a String
String.prototype.replaceAll = function(replace_string,replace_with){
return this.split(replace_string).join(replace_with);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment