utils/uri.js
function parseQueryMap(query) {
  var map = {};
  parseQueryString(query, function(key, value) {
    map[key] = value;
  });
  return map;
}
function parseQueryMap(query) {
  var map = {};
  parseQueryString(query, function(key, value) {
    map[key] = value;
  });
  return map;
}
function parseQueryMap ( query ) { var map = { } ; parseQueryString ( query , function ( key , value ) { map [ key ] = value ; } ) ; return map ; }
Parses a query string and returns a map of key-value pairs.
@param {string} query Query string (without the leading question mark).
@return {Object} Map of key-value pairs.
Parses a query string and returns a map of key - value pairs .