trim
Trims whitespace from both ends of a string.
trim(x:string) -> string
Description
The trim
function removes leading and trailing whitespace from x
.
Examples
Trim whitespace from both ends
from {x: " hello ".trim()}
{x: "hello"}
See Also
trim_start
, trim_end