357 Views
The normal string method .replace() only lets you replace one occurrence if you search for string (and not a regular expression with the flag /g). The proposal "String.prototype.replaceAll" (by Mathias Bynens) fixes that. Let's look at three options for replacing that we currently have.
0 comments