Builds a URL query string from the given parameters object.
Iterates over the key-value pairs in the params object, serializes each value,
and encodes it for use in a URL. Only keys with non-null and non-undefined values
are included in the resulting query string.
Parameters
params: Record<string,unknown>
An object containing key-value pairs to be serialized into a query string.
Returns string
A URL-encoded query string representing the provided parameters.
Builds a URL query string from the given parameters object.
Iterates over the key-value pairs in the
params
object, serializes each value, and encodes it for use in a URL. Only keys with non-null and non-undefined values are included in the resulting query string.