Converts string into an array of its words.
string
The string to convert.
Returns the words array.
toWords('Hello, world!')// => ['Hello', 'world'] Copy
toWords('Hello, world!')// => ['Hello', 'world']
Converts
string
into an array of its words.