import { isNilOrEmptyString } from "../commonHelpers/isNilOrEmptyString";
export function getQueryString(queryParams) {
    const result = Object.entries(queryParams)
        .filter(([_key, value]) => !isNilOrEmptyString(value))
        .map(([key, value]) => `${key}=${encodeURIComponent(value)}`)
        .join("&");
    return result && `?${result}`;
}
//# sourceMappingURL=getQueryString.js.map