Matches a string and returns an array containing the results of the match.
match(value)
value
A string, a regular expression object, or an object that can be matched against.
An array containing the results of the search.
"banana".match(/an/)
["an"]