.matchAll()
Term side of the Card
Topic: String
Unit title: .matchAll()
Categories: Method
Explanation side of the Card
Explanation: The method that returns an `Iterator` object of all matches of a string against a regular expression. It provides all matches, including capturing groups, when the regular expression has the global `g` flag. If the global flag is not present, `.matchAll()` will not work as expected.
Browser compatibility:
- The chrome browser supports this feature starting from version 73
- The edge browser supports this feature starting from version 79
- The firefox browser supports this feature starting from version 67
- The safari browser supports this feature starting from version 13
Availability: