Example 1 — Official: Default Word Rules
Punctuation and & are skipped; letter words remain.
_.words('fred, barney, & pebbles');
// → ['fred', 'barney', 'pebbles'] How It Works
- Input. A list of names with commas and
&. - Default pattern. Matches Unicode word sequences.
- Skip. Commas, spaces, and
&are not words. - Result. Three name tokens.

