From 5cf046de09f8ff68b76b025e70ed2090c33d9d35 Mon Sep 17 00:00:00 2001 From: Kladdkaka Date: Sun, 17 Dec 2017 11:55:13 +0100 Subject: [PATCH] changing _ to () --- snippets/current-URL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/current-URL.md b/snippets/current-URL.md index 200cf150b..3a549d219 100644 --- a/snippets/current-URL.md +++ b/snippets/current-URL.md @@ -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' ```