← Back to release summary

String.prototype.replaceAll

Category
JavaScript
Type
New or changed feature
Status
Enabled by default (Chrome 85)
Intent stage
Prepare to ship

Summary

JavaScript now has first-class support for global substring replacement through the new `String.prototype.replaceAll()` method.

Standards & signals

Docs: n/a

Explainers: https://v8.dev/features/string-replaceall https://github.com/tc39/proposal-string-replaceall

View on chromestatus.com