You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The description of String.prototype.matchAll says:
Each iteration result's value is an Array containing the results of the match, or null if the String did not match.
However, if the string did not match, the iterator returns undefined, not null, as far as you don't use an object with a custom @@matchAll property instead of the standard RegExp.
Description:
The description of
String.prototype.matchAll
says:However, if the string did not match, the iterator returns
undefined
, notnull
, as far as you don't use an object with a custom@@matchAll
property instead of the standardRegExp
.(Possibly this is because the old reivision of the proposal stated it returns
null
but the description remains unchanged?)eshost Output:
The text was updated successfully, but these errors were encountered: