/ Published in: JavaScript
Replaces all matches in a string used str.replaceAll(find,replace);
Expand |
Embed | Plain Text
//used str.replaceAll(find,replace); String.prototype.replaceAll = function(s1, s2) { return this.split(s1).join(s2)}
You need to login to post a comment.
