[whatwg/url] Provide means to "strip query" (#247)

I find code like the below around the place: 

```JS
function stripQuery(url) {
  return url.split("?")[0];
}
```

I'm wondering if the spec could just provide a means to get a URL without query params (and I guess the same for hash). 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/247

Received on Monday, 13 February 2017 04:46:59 UTC