x/30_seconds_of_typescript/docs/currentURL.md
Returns the current URL.
Use window.location.href to get the current URL.
window.location.href
const currentURL = () => window.location.href;
currentURL(); // 'https://google.com'