function isExternal(url, currentUrl) {
  return parseUrl(url).hostname !== getLocation(currentUrl).hostname
}
Check if URL is external
@param {string} url
@param {string} [currentUrl]
@returns {boolean}