• Returns a new string equivalent to this string but with the whitespace removed from the end.

    Parameters

    • str: string

    Returns string

    Deprecated

    Use string.trimEnd instead.