Skip to content

words

words(s): readonly string[]

Defined in: Data/Str.ts:142

Splits a string into words on any whitespace boundary, filtering out empty strings.

string

readonly string[]

Str.words("  hello   world  "); // ["hello", "world"]