Skip to content

trim

trim(s): string

Defined in: Utils/Str.ts:34

Removes leading and trailing whitespace from a string.

string

string

pipe("  hello  ", Str.trim); // "hello"