From 5169b41c1b37f1fb31ca8b2169b1a222761d4d6d Mon Sep 17 00:00:00 2001 From: Isabelle Viktoria Maciohsek Date: Wed, 7 Oct 2020 21:20:49 +0300 Subject: [PATCH] Update isWeekend.md --- snippets/isWeekend.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/isWeekend.md b/snippets/isWeekend.md index 428a1ab38..638163728 100644 --- a/snippets/isWeekend.md +++ b/snippets/isWeekend.md @@ -9,8 +9,8 @@ Results in a boolean representation of a specific date. - Use `Date.getDay()` to check weekend based on the day being returned as 0 - 6 using a modulo operation then return a boolean. ```js -const isWeekend = (t = new Date()) => { - return t.getDay() % 6 === 0; +const isWeekend = (d = new Date()) => { + return d.getDay() % 6 === 0; }; ```