import { map } from './object.js';

/**
 * Utility module to work with urls.
 *
 * @module url
 */


/**
 * @param {Object<string,string>} params
 * @return {string}
 */
const encodeQueryParams = params =>
  map(params, (val, key) => `${encodeURIComponent(key)}=${encodeURIComponent(val)}`).join('&');

export { encodeQueryParams };
//# sourceMappingURL=url.js.map
