Text.TrimEnd

Syntax

Text.TrimEnd(text as nullable text, optional trim as any) as nullable text

About

Returns the result of removing all trailing whitespace from text value text.

Example 1

Remove trailing whitespace from " a b c d ".

Usage

Text.TrimEnd("     a b c d    ")

Output

"     a b c d"