function makeURLSearchParams

export declare function makeURLSearchParams<ParametersType extends object>(parameters?: Readonly<ParametersType>, options?: MakeURLSearchParamsOptions): import("url").URLSearchParams;

Creates and populates an URLSearchParams instance from an object, stripping out null and undefined values, while also coercing non-strings to strings.

Returns: A populated URLSearchParams instance

Type Parameters

ParametersType extends object

Parameters

optional
parameters?: Readonly<ParametersType>
The parameters to use
optional
options?: MakeURLSearchParamsOptions
The options for serializing URL search parameters