Hex Core JS
    Preparing search index...

    Function trimRight

    • Trims trailing c characters from the string s. Related: trimSuffix.

      Parameters

      • s: string

        The string to trim.

      • c: string

        The character to trim from s.

      • limit: number = -1

        The maximum number of characters to trim from the right side (default is -1), a value less than zero indicates no limit.

      Returns string