Sets the search parameters of a given URL object based on the provided key-value pairs.
Only parameters with non-null and non-undefined values are included.
Values are serialized using the serializeValue function before being set.
Parameters
url: URL
The URL object whose search parameters will be updated.
params: Record<string,unknown>
An object containing key-value pairs to be set as search parameters.
Sets the search parameters of a given URL object based on the provided key-value pairs. Only parameters with non-null and non-undefined values are included. Values are serialized using the
serializeValue
function before being set.