Hex Core JS
    Preparing search index...

    Function trimSuffix

    • Trims the given suffix from the given string. Related: trimRight.

      Parameters

      • s: string

        The string to trim.

      • suffix: string

        The suffix to trim from s.

      • limit: number = 1

        The maximum number of times to trim the suffix (default is 1), a value less than zero indicates no limit.

      Returns string