createSearchParams
declare function createSearchParams(
init?: URLSearchParamsInit
): URLSearchParams;
createSearchParams
is a thin wrapper around new URLSearchParams(init)
that adds support for using objects with array values. This is the same function that useSearchParams
uses internally for creating URLSearchParams
objects from URLSearchParamsInit
values.