function getDomain(url) {
  return getHost(url).split('.').slice(-2).join('.')
}
Get base domain of url
@param  {String} [url] - href of page
@return {String} base domain of page

@example
 getDomain('https://subdomain.my-site.com/')
 > my-site.com