changing _ to ()

This commit is contained in:
Kladdkaka
2017-12-17 11:55:13 +01:00
committed by GitHub
parent e20190c534
commit 5cf046de09

View File

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