samples/amd/js/utils/params.js
function getUrlParams(path) {
    if (!path) {
      return {};
    }
    var bits = path.split('?');
    var querystring = bits.length > 1 ? bits[1] : '';
    return toObject(querystring);
  }
function getUrlParams(path) {
    if (!path) {
      return {};
    }
    var bits = path.split('?');
    var querystring = bits.length > 1 ? bits[1] : '';
    return toObject(querystring);
  }
function getUrlParams ( path ) { if ( ! path ) { return { } ; } var bits = path . split ( '?' ) ; var querystring = bits . length > 1 ? bits [ 1 ] : '' ; return toObject ( querystring ) ; }
Return the query parameters from the provided string
@param {string} path - Path to pull querystring from, should be location.href
@return {object} - Dictionary containiner the url parameters
Return the query parameters from the provided string