- From: Shane Hudson <notifications@github.com>
- Date: Thu, 01 Dec 2022 02:52:37 -0800
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 1 December 2022 10:52:50 UTC
I agree, and you still have the ability to manipulate the array directly like we do currently in the case of wanting a specific one deleted. On 1 Dec 2022 at 10:17 AM +0000, Martin ***@***.***>, wrote: > I agree. I would aim for consistency with the existing behavior of URLSearchParams functions. > URLSearchParams.delete(key) deletes all entries with matching key > const params = new URLSearchParams('foo=1&foo=2&bar=3&bar=3'); > params.delete('foo'); > params.toString(); // 'bar=3&bar=3' > URLSearchParams.delete(key, value) deletes all entries with matching key and value > const params = new URLSearchParams('foo=1&foo=2&bar=3&bar=3'); > params.delete('bar', '3'); > params.toString(); // 'foo=1&foo=2' > — > Reply to this email directly, view it on GitHub, or unsubscribe. > You are receiving this because you were mentioned.Message ID: ***@***.***> -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/url/issues/335#issuecomment-1333574892 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/url/issues/335/1333574892@github.com>
Received on Thursday, 1 December 2022 10:52:50 UTC