Removes a query parameter from a URL string and returns the new URL.
The URL string.
The query parameter to remove.
removeQueryParam("https://example.com?a=1&b=2", "a")// => "https://example.com/?b=2" Copy
removeQueryParam("https://example.com?a=1&b=2", "a")// => "https://example.com/?b=2"
Removes a query parameter from a URL string and returns the new URL.