@eroyeroy/utils - v0.1.0
    Preparing search index...

    Function removeQueryParam

    • Removes a query parameter from a URL string and returns the new URL.

      Parameters

      • url: string

        The URL string.

      • param: string

        The query parameter to remove.

      Returns string

      removeQueryParam("https://example.com?a=1&b=2", "a")
      // => "https://example.com/?b=2"