whole_func_string: function getEligibleGSuiteDomain( selectedDomainName, domains ) {
  	if ( selectedDomainName && canDomainAddGSuite( selectedDomainName ) ) {
  		return selectedDomainName;
  	}
  	const [ eligibleDomain ] = getGSuiteSupportedDomains( domains );
  	return ( eligibleDomain && eligibleDomain.name ) || '';
  }
func_code_string: function getEligibleGSuiteDomain( selectedDomainName, domains ) {
  	if ( selectedDomainName && canDomainAddGSuite( selectedDomainName ) ) {
  		return selectedDomainName;
  	}
  	const [ eligibleDomain ] = getGSuiteSupportedDomains( domains );
  	return ( eligibleDomain && eligibleDomain.name ) || '';
  }
func_documentation_string: Retrieves the first domain that is eligible to G Suite either from the current selected site or the list of domains.
  
  @param {String} selectedDomainName - domain name for the site currently selected by the user
  @param {Array} domains - list of domain objects
  @returns {String} - Eligible domain name