String.prototype.replaceAll

Specification
Proposal repo

Modules

es.string.replace-all.

Built-ins signatures

class String {
  replaceAll(searchValue: string | RegExp, replaceString: string | (searchValue, index, this) => string): string;
}

Entry points

core-js/proposals/string-replace-all-stage-4
core-js(-pure)/es|stable|actual|full/string(/virtual)/replace-all

Examples

'Test abc test test abc test.'.replaceAll('abc', 'foo'); // => 'Test foo test test foo test.'