[whatwg/url] [proposal] Enhanced the ability for multiple same-name-parameters to the URLSearchParams: .has() and .delete() (Issue #680)

The proposal is fully compatible with the existing scheme.
There has a similar idea https://github.com/whatwg/url/issues/335, but not exactly same.

---

## .has()
### Syntax
```
URLSearchParams.has(name, [value])
```

> ### The changes
1. Added optional second parameter

## .delete()
### Syntax
```
URLSearchParams.delete(name, [value])
```
**_Return value_**
Number of parameters deleted, greater than or equal to _0_.

> ### The changes
1. Added optional second parameter
2. Added return value, this is very useful

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

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

Received on Tuesday, 4 January 2022 04:26:07 UTC