src/helpers.js
/**
 * doStringifySearchquery
 * @function doStringifySearchquery
 * @param {string} querystring querystring of url
 * @return {string} ready for 'get' request. part of unique identifier of a bookmark
 */
doStringifySearchquery
@function doStringifySearchquery
@param {string} querystring querystring of url
@return {string} ready for 'get' request. part of unique identifier of a bookmark
doStringifySearchquery @function doStringifySearchquery @param { string } querystring querystring of url @return { string } ready for ' get ' request . part of unique identifier of a bookmark
function doStringifySearchquery(querystring) {
  const params = new URLSearchParams(querystring);
  let obj = {};
  for (var key of params.keys()) {
    obj[key] = params.getAll(key);
  }
  return JSON.stringify(obj);
}
function doStringifySearchquery ( querystring ) { const params = new URLSearchParams ( querystring ) ; let obj = { } ; for ( var key of params . keys ( ) ) { obj [ key ] = params . getAll ( key ) ; } return JSON . stringify ( obj ) ; }
doStringifySearchquery
 @function doStringifySearchquery
 @param {string} querystring querystring of url
 @return {string} ready for 'get' request.
doStringifySearchquery @function doStringifySearchquery @param { string } querystring querystring of url @return { string } ready for ' get ' request .