Rename current-URL.md to currentURL.md

renamed for consistency
This commit is contained in:
Soorena
2017-12-18 12:35:03 +03:30
committed by GitHub
parent 078de0a951
commit 71dbbd3556

10
snippets/currentURL.md Normal file
View 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'
```