searchParams
URL: searchParams
From MDN: "The searchParams readonly property of the URL interface returns a URLSearchParams object allowing access to the GET decoded query arguments contained in the URL."
Notes & further reading
Always read-only
Spec: URL Standard
MDN: URL.searchParams
Example value:
const url = new URL("https://elide.dev/?one=two#hello");
url.searchParams.get('one');
← "two"
Content copied to clipboard