code: function objectToQueryString(urlParams) {
    var queryString = '';
        
    if (urlParams) {
      Object.keys(urlParams).forEach(function (key) {
        if (queryString.length === 0) {
          queryString = '?';
        }
        else {
          queryString += '&';
        }
        
        queryString += key + '=' + encodeURIComponent(urlParams[key] || '');
      });
    }
    
    return queryString;
  }
docs: Private
  
  @ignore