makeURLSearchParams
declare function makeURLSearchParams<T extends object>(options?: Readonly<T>): URLSearchParams;
declare function makeURLSearchParams<T extends object>(options?: Readonly<T>): URLSearchParams;
Creates and populates an URLSearchParams instance from an object, stripping out null and undefined values, while also coercing non-strings to strings.
Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
T | object | No | None |
Name | Type | Optional | Description |
---|---|---|---|
options | Readonly<T> | Yes | The options to use |