function trimTld(baseDomain) {
  const arr = baseDomain.split('.')
  return (arr.length > 1) ? arr.slice(0, -1).join('.') : baseDomain
}
Remove TLD from domain string
@param  {String} baseDomain - host name of site
@return {String}
@example
 trimTld('google.com')
 > google