Trim End

trim_end

Removes trailing whitespace from a string.

Spec

trim_end(arg0)

Parameters

arg0 - A string value.

Return Value

The input string with trailing whitespace removed.

Example

datatable(val:string)["  hello  "]
| extend intermediate = ">" + val + "<"
| extend result = ">" + trim_end(val) + "<"
valintermediateresult
hello> hello <> hello<