The strTrimEnd() method removes whitespace from the end of a string.

  • Parameters

    • value: string

      The value to be trimmed.

    Returns string

    A new string representing str stripped of whitespace from its end (right side). If the end of str has no whitespace, a new string is still returned (essentially a copy of str), with no exception being thrown.