Skip to content

Commit 3cade4c

Browse files
String.prototype.replace docs fix.
Co-authored-by: graphemecluster <graphemecluster@gmail.com>
1 parent a179e91 commit 3cade4c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/lib/es2015.symbol.wellknown.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ interface String {
219219
match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
220220

221221
/**
222-
* Replaces first match with string or all matches with RegExp.
223-
* @param searchValue A string or RegExp search value.
224-
* @param replaceValue A string containing the text to replace for match.
222+
* Replaces one or more occurrences of substrings that match the method provided by `searchValue`.
223+
* @param searchValue An object that supports searching for and replacing matches within a string.
224+
* @param replacer A function that returns the replacement text.
225225
*/
226226
replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
227227

0 commit comments

Comments
 (0)