trim
Trims whitespace from both ends of a string.
trim(x:string) -> string
Description
Section titled “Description”The trim
function removes leading and trailing whitespace from x
.
Examples
Section titled “Examples”Trim whitespace from both ends
Section titled “Trim whitespace from both ends”from {x: " hello ".trim()}
{x: "hello"}