ECMAScript proposal: `String.prototype.replaceAll`

added by JavaScript Kicks
12/22/2019 10:22:37 AM

263 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