-
Notifications
You must be signed in to change notification settings - Fork 141
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
URLSearchParams.appendAll(iterable) #461
Comments
Heya, welcome! https://whatwg.org/faq#adding-new-features might be worth reading. I'm wondering, is this a popular pattern in libraries / existing code today that makes it worth putting in the standard library? Is this often requested on Stack Overflow or equivalent forums? |
Anecdotal, @annevk, but personally I try to use the non-existent (Certainly not a big nuisance that it’s absent — just surprising, I think, if one has been trained to expect symmetry from APIs like this.) |
Symmetry with |
Yes — I missed that in the OP, the method I keep imagining exists is |
Angular has this implemented in their |
It would be nice if TC39 established some precedent here with their (@bathos for your use case it might make sense to turn value into a rest parameter on |
GitHub Copilot seems to try that too: |
This is a feature request for the functionality mentioned in the title. (Hopefully this is the right place for such requests.) Basically, it'd be really nice to be able to merge a bunch of items into a URL's existing query string, without having to do an explicit loop and call append on each iteration, hence something like:
The text was updated successfully, but these errors were encountered: