-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
url: add value argument to has and delete methods #47885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
7d99ffc
ecf95b5
5031f58
f1845e3
2846704
a0522c8
3c1521f
e66fe1e
68624b3
29c316c
9126a64
3b19423
fb0e57d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -859,11 +859,15 @@ new URLSearchParams([ | |||||
|
|
||||||
| Append a new name-value pair to the query string. | ||||||
|
|
||||||
| #### `urlSearchParams.delete(name)` | ||||||
| #### `urlSearchParams.delete(name, value)` | ||||||
|
|
||||||
| * `name` {string} | ||||||
| * `value` {string} | ||||||
|
|
||||||
| If `value` is provided, then delete all name-value pairs with | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The phrasing should be consistent between the two paragraphs.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks |
||||||
| whose `name` is name and `value` is value. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| Remove all name-value pairs whose name is `name`. | ||||||
| If `value` not provided, remove all name-value pairs whose name is `name`. | ||||||
|
debadree25 marked this conversation as resolved.
Outdated
|
||||||
|
|
||||||
| #### `urlSearchParams.entries()` | ||||||
|
|
||||||
|
|
@@ -918,12 +922,20 @@ are no such pairs, `null` is returned. | |||||
| Returns the values of all name-value pairs whose name is `name`. If there are | ||||||
| no such pairs, an empty array is returned. | ||||||
|
|
||||||
| #### `urlSearchParams.has(name)` | ||||||
| #### `urlSearchParams.has(name, value)` | ||||||
|
|
||||||
| * `name` {string} | ||||||
| * `value` {string} | ||||||
| * Returns: {boolean} | ||||||
|
|
||||||
| Returns `true` if there is at least one name-value pair whose name is `name`. | ||||||
| Checks if the `URLSearchParams` object contains key-value pair(s) based on | ||||||
| `name` and an optional `value` argument. | ||||||
|
|
||||||
| If `value` is provided, returns true when name-value pair with | ||||||
|
sankalp1999 marked this conversation as resolved.
Outdated
|
||||||
| same `name` and `value` exists. | ||||||
|
|
||||||
| If `value` is not provided, returns `true` if there is at least one name-value | ||||||
| pair whose name is `name`. | ||||||
|
|
||||||
| #### `urlSearchParams.keys()` | ||||||
|
|
||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.