Function removeTrailingSlash

Removes the trailing slash from the given URL string.

  • Parameters

    • Optionalurl: string

      The URL string to modify.

    Returns string

    A new URL string with the trailing slash removed.