update snippets 16-31

This commit is contained in:
Stefan Feješ
2017-12-25 14:05:36 +01:00
parent 9b57350525
commit 823aa0c305
15 changed files with 66 additions and 27 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'
```