UNPKG

30-seconds-of-code

Version:
14 lines (9 loc) 196 B
### currentURL Returns the current URL. Use `window.location.href` to get current URL. ```js const currentURL = () => window.location.href; ``` ```js currentURL(); // 'https://google.com' ```