/ Published in: JavaScript
Replace all instances of a string without using Regex.
Expand |
Embed | Plain Text
String.prototype.replaceAll = function(target, replacement) { return this.split(target).join(replacement); };
You need to login to post a comment.
