More clear comment for String.prototype.match() (#36301)

* More clear comment for String.prototype.match()

* Removed trailing spaces
This commit is contained in:
Arman
2020-03-12 14:44:07 -07:00
committed by GitHub
parent 7bd6209fbc
commit 3d76c37cbe
+3 -2
View File
@@ -207,7 +207,8 @@ interface RegExpConstructor {
interface String {
/**
* Matches a string an object that supports being matched against, and returns an array containing the results of that search.
* Matches a string or an object that supports being matched against, and returns an array
* containing the results of that search, or null if no matches are found.
* @param matcher An object that supports being matched against.
*/
match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
@@ -295,4 +296,4 @@ interface SetConstructor {
}
interface ArrayBufferConstructor {
readonly [Symbol.species]: ArrayBufferConstructor;
}
}