UNPKG

build-url-params

Version:
3 lines (2 loc) 317 B
"use strict";exports.buildUrlWithParams=function(r,t){if(!t)return r;var e=Object.fromEntries(Object.entries(t).filter((function(r){var t=r[1];return null!=t&&""!==t})));if(0===Object.keys(e).length)return r;var n=new URLSearchParams(e).toString();return"".concat(r,"?").concat(n)}; //# sourceMappingURL=index.js.map