src/helpers.js
/**
 * deStringifySearchquery
 * counterpart of doStringifySearchquery
 * @function deStringifySearchquery
 * @param {string} searchparamstring Json stringified object with search params (values are lists!)
 * @return {string} querystring, ready to use in url
 */
deStringifySearchquery
counterpart of doStringifySearchquery
@function deStringifySearchquery
@param {string} searchparamstring Json stringified object with search params (values are lists!)
@return {string} querystring, ready to use in url
deStringifySearchquery counterpart of doStringifySearchquery @function deStringifySearchquery @param { string } searchparamstring Json stringified object with search params ( values are lists! ) @return { string } querystring ready to use in url
function deStringifySearchquery(searchparamstring) {
  const obj = JSON.parse(searchparamstring);
  const params = new URLSearchParams();
  for (const [key, value] of Object.entries(obj)) {
    for (const el of value) {
      params.append(key, el);
    }
  }
  return params.toString();
}
function deStringifySearchquery ( searchparamstring ) { const obj = JSON . parse ( searchparamstring ) ; const params = new URLSearchParams ( ) ; for ( const [ key , value ] of Object . entries ( obj ) ) { for ( const el of value ) { params . append ( key , el ) ; } } return params . toString ( ) ; }
deStringifySearchquery
 counterpart of doStringifySearchquery
 @function deStringifySearchquery
 @param {string} searchparamstring Json stringified object with search params (values are lists!)
deStringifySearchquery counterpart of doStringifySearchquery @function deStringifySearchquery @param { string } searchparamstring Json stringified object with search params ( values are lists! )
// params[key] = el;