"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _mapValues=_interopRequireDefault(require("lodash/mapValues"));
var _isNil=_interopRequireDefault(require("lodash/isNil"));

function getValue(val){
if(val instanceof Date){
return val.toISOString();
}

return String(val);
}var _default=








obj=>{
if((0,_isNil.default)(obj)){
return"";
}

const transformedObj=(0,_mapValues.default)(obj,getValue);
const params=new URLSearchParams(transformedObj);
return params.toString();
};exports.default=_default;