Rename current-URL.md to currentURL.md
renamed for consistency
This commit is contained in:
10
snippets/currentURL.md
Normal file
10
snippets/currentURL.md
Normal file
@ -0,0 +1,10 @@
|
||||
### currentURL
|
||||
|
||||
Returns the current URL.
|
||||
|
||||
Use `window.location.href` to get current URL.
|
||||
|
||||
```js
|
||||
const currentURL = () => window.location.href;
|
||||
// currentUrl() -> 'https://google.com'
|
||||
```
|
||||
Reference in New Issue
Block a user