Splits string into an array of its words.
string
words('fred, barney, & pebbles') // => ['fred', 'barney', 'pebbles']
words('fred, barney, & pebbles', /[^, ]+/g) // => ['fred', 'barney', '&', 'pebbles']
Returns the words of string.
Generated using TypeDoc
Splits
string
into an array of its words.words('fred, barney, & pebbles') // => ['fred', 'barney', 'pebbles']
words('fred, barney, & pebbles', /[^, ]+/g) // => ['fred', 'barney', '&', 'pebbles']