The Symbol.replace
well-known symbol specifies the method that replaces matched substrings of a string. This function is called by the String.prototype.replace()
method.
For more information, see RegExp.prototype[@@replace]()
and String.prototype.replace()
.