- From: Felix Becker <notifications@github.com>
- Date: Thu, 11 May 2017 00:37:51 -0700
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 11 May 2017 07:38:23 UTC
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