changing _ to ()
This commit is contained in:
@ -3,6 +3,6 @@
|
|||||||
Use `window.location.href` to get current URL.
|
Use `window.location.href` to get current URL.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const currentUrl = _ => window.location.href;
|
const currentUrl = () => window.location.href;
|
||||||
// currentUrl() -> 'https://google.com'
|
// currentUrl() -> 'https://google.com'
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user