SyntaxFix
Write A Post
Hire A Developer
Questions
You can use:
String.prototype.replaceAll = function(search, replace) { if (replace === undefined) { return this.toString(); } return this.split(search).join(replace); }