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

Why not simply do
```ts
Object.assign(new URL('http://github.com/hello/world?q=v'), { search: '' }).href
"http://github.com/hello/world"
```
it's a one-liner, I don't think options for stripping various components should be added when all you need to do is assign the component you want to strip an empty string.

-- 
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#issuecomment-300708209

Received on Thursday, 11 May 2017 07:38:23 UTC