Reports calls to String.prototype.match() that should use RegExp.prototype.exec() instead.
When a regular expression does not have the global flag (g), both methods behave identically, but exec() is clearer in intent and may be slightly faster.
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.
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.
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.
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.