Skip to content

trim_end

Trims whitespace from the end of a string.

trim_end(x:string) -> string

The trim_end function removes trailing whitespace from x.

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

trim, trim_start