Re: [whatwg/url] size (or length) for URLSearchParams (#163)

Sorry to show up towing a bikeshed, but how about
```idl
unsigned long count(optional USVString key, optional USVString value);
```
allowing you to do
```js
const p = new URLSearchParams('a=1&b=2&b=3&b=3');
p.count();  // 4
p.count('b');  // 3
p.count('b', '3');  // 2
```
?

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

Message ID: <whatwg/url/issues/163/1434561180@github.com>

Received on Friday, 17 February 2023 12:17:40 UTC