Skip to content

words

words(s): readonly string[]

Defined in: Utils/Str.ts:108

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

string

readonly string[]

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