update snippets 16-31

This commit is contained in:
Stefan Feješ
2017-12-25 14:05:36 +01:00
committed by Agamemnon Zorbas
parent b2cffa6858
commit 014a77224c
15 changed files with 70 additions and 30 deletions

View File

@ -6,5 +6,8 @@ Use `window.location.href` to get current URL.
```js
const currentURL = () => window.location.href;
// currentUrl() -> 'https://google.com'
```
```js
currentUrl() -> 'https://google.com'
```