Created
January 1, 2016 05:20
-
-
Save dineshsprabu/1503d01ee3a4e2faeb6a to your computer and use it in GitHub Desktop.
Replace All Possibilities in a String
This file contains 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
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