1export const domainFromURL = (url) => {2 return url3 .replace("http://", "")4 .replace("https://", "")5 .replace("www.", "")6 .split(/[/?#]/)[0];7};
Written byEdson Frainlar Follow @FrainlarEdson
Mission-driven Full-stack Developer with a passion for developing KTern, Dev Collaboration, and teaching. Curious to explore Quantum Information and Computing.
Connect