'use strict';

var object = require('./object.js');

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


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

exports.encodeQueryParams = encodeQueryParams;
//# sourceMappingURL=url.js.map
