re: Daily Challenge #89 - Extract domain name from URL VIEW POST

FULL DISCUSSION
 

Oneline with javascript

const domainName = d => new URL(d).hostname.split(".").shift()
code of conduct - report abuse