tokenList(s) trims and splits a string by whitespace; for falsy or
whitespace-only input it returns the module-shared empty array. Used
by addClass /
removeClass. Part of
pota/use/dom.
| Argument | Type | Description |
|---|---|---|
s |
string | undefined | null |
The string to split. |
Returns: string[] — the whitespace-separated tokens, or the
shared empty array for falsy / whitespace-only input.