@arcmantle/library
    Preparing search index...

    Function trimPostfix

    • This function removes a specified string from the end of another string if the second string ends with the specified string.

      Otherwise, it returns the original string.

      Parameters

      • str: string
      • postfix: string

      Returns string