You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In particular if you have a URL, either as a string (inc. a relative URL) or an object, and some kind of structure that could be passed to URLSearchParams's constructor, it should be easier to get a new URL out of that (either a string or object).
What you can currently do is something like (substitution):
If libraries identify a popular pattern here I'm sure it'll be suggested here long term (or using libraries is deemed adequate, which is also acceptable).
In particular if you have a URL, either as a string (inc. a relative URL) or an object, and some kind of structure that could be passed to
URLSearchParams
's constructor, it should be easier to get a new URL out of that (either a string or object).What you can currently do is something like (substitution):
or (additive):
Both are quite verbose. Perhaps something like
though note you'd lose the base argument (we'd grab that from the global) and flexibility on substitution or additive (gotta pick).
The text was updated successfully, but these errors were encountered: