• Removes all the trailing occurrences of a character from a string.

    Parameters

    • value: string

      String to trim

    • endValue: string

      String to remove

    Returns string

    Trimmed string