DEV Community

Joe Steinbring
Joe Steinbring

Posted on • Originally published at blog.jws.app on

New things in ECMAScript 2021: String.prototype.replaceAll()

This is going to be a pretty quick post. I was skimming through what is new in ECMAScript 2021 and spotted replaceAll(). It is already supported in everything except for Internet Explorer. Let’s take a look at a quick example.

The reference is within computed properties but this definitely does not require vue. As you can see, it works the same as replace() but it just doesn’t stop at the first instance.

Have any questions, comments, etc? Feel free to drop a comment, below.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more