src/index.js
function createUrlFromEndpointAndOptions (endpoint, options) {
  const query = qs.stringify(options);
  const baseURL = `${host}${endpoint}`;
  return query ? `${baseURL}?${query}` : baseURL;
}
function createUrlFromEndpointAndOptions (endpoint, options) {
  const query = qs.stringify(options);
  const baseURL = `${host}${endpoint}`;
  return query ? `${baseURL}?${query}` : baseURL;
}
function createUrlFromEndpointAndOptions ( endpoint , options ) { const query = qs . stringify ( options ) ; const baseURL = ` ${ host } ${ endpoint } ` ; return query ? ` ${ baseURL } ${ query } ` : baseURL ; }
Creates a url string from an endpoint and an options object by appending the endpoint
to the global "host" const and appending the options as querystring parameters.
@param {String} endpoint
@param {Object} [options]
@return {String}
Creates a url string from an endpoint and an options object by appending the endpoint to the global host const and appending the options as querystring parameters .