words (Function)

Signature: words(s: string) -> List<string>

Description: Splits on runs of whitespace; empty results dropped.

Parameters

  • s (string): The string to split

Returns: List

Example

words("a  b\\tc")  // ["a","b","c"]
words "a  b\\tc"  // ["a","b","c"]