docs: function getQueryObj(query='') {
    const qObj = {};
    const pairs = (query[0] === '?' ? query.substr(1) : query).split('&');
    for (let i = 0, j = pairs.length; i < j; i++) {
      let pair = pairs[i].split('=');
      qObj[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1] || '');
    }
    return qObj;
  }