Skip to main content
Version: Next

trim_end

Trims whitespace from the end of a string.

trim_end(x:string) -> string

Description

The trim_end function removes trailing whitespace from x.

Examples

Trim whitespace from the end

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

See Also

trim, trim_start