docs: function parseQueryString(query) {
    if (!query) {
      return {};
    }
    return (/^[?#]/.test(query) ? query.slice(1) : query)
        .split('&')
        .reduce((params, param) => {
          const item = param.split('=');
          const key = decodeURIComponent(item[0] || '');
          const value = decodeURIComponent(item[1] || '');
          if (key) {
            params[key] = value;
          }
          return params;
        }, {});
  }