"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getQueryString = getQueryString;
const isNilOrEmptyString_1 = require("../commonHelpers/isNilOrEmptyString");
function getQueryString(queryParams) {
    const result = Object.entries(queryParams)
        .filter(([_key, value]) => !(0, isNilOrEmptyString_1.isNilOrEmptyString)(value))
        .map(([key, value]) => `${key}=${encodeURIComponent(value)}`)
        .join("&");
    return result && `?${result}`;
}
//# sourceMappingURL=getQueryString.js.map