Skip to content

trim

Trims whitespace from both ends of a string.

trim(x:string) -> string

The trim function removes leading and trailing whitespace from x.

from {x: " hello ".trim()}
{x: "hello"}

trim_start, trim_end