Search...

makeURLSearchParams

declare function makeURLSearchParams(options?: Record<string, unknown>): URLSearchParams;
declare function makeURLSearchParams(options?: Record<string, unknown>): URLSearchParams;
Creates and populates an URLSearchParams instance from an object, stripping out null and undefined values, while also coercing non-strings to strings.
NameTypeOptionalDescription
optionsRecord<string, unknown>YesThe options to use