Returns a URLSearchParams object for the given search substring. This is memoized for the last search provided.
URLSearchParams
(Optional) The window's search substring. Defaults to location.search, overridden only for unit tests.
location.search
Returns a
URLSearchParamsobject for the given search substring. This is memoized for the last search provided.