}
if (typeof value === 'object' && !Array.isArray(value)) {
const pairs: string[] = [];
for (const k in value) {
if (Object.prototype.hasOwnProperty.call(value, k)) {
const thisVal = String((value as Record<string, unknown>)[k]);
if (isParam) {
pairs.push(k + '=' + thisVal);
pairs.push(k + '=' + thisVal);
} else if (isLabel) {