If pattern is a regex, it would also interrogate pattern's source and flags properties instead of coercing pattern to a string.įor example, () would coerce all inputs to strings, but it would throw if the argument is a regex, because it's only designed to match strings, and using a regex is likely a developer mistake.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |