Function removeSlashes

  • Remove any leading and trailing slash from a URL.

    Parameters

    • url: string

      The URL to format.

    • leading: boolean = true

      Whether or not to remove any leading slash.

    • trailing: boolean = true

      Whether or not to remove the trailing slash.

    Returns string

Generated using TypeDoc