match() and matchAll()
match
match() returns the result, in Array form, of matching a string against the regular expression you pass as a parameter.
If you pass a string or number, it'll be converted into a regular expression under the hood, with new RegExp(). Ideally you...
raissa.hashnode.dev3 min read