code: function getQueryString(data) {
      if (!data || typeof data !== 'object' || !Object.keys(data).length)
          return '';
      return '?' + Object.keys(data).map((k) => {
          const value = (typeof data[k] === 'object')
              ? JSON.stringify(data[k])
              : encodeURIComponent(data[k]);
          return `${encodeURIComponent(k)}=${value}`;
      }).join('&');
  }
docs: Convert payload data to query string for GET requests