Update isWeekday.md

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-07 17:20:21 +03:00
committed by GitHub
parent 116ef9a34e
commit fab7b21183

View File

@ -9,9 +9,7 @@ Results in a boolean representation of a specific date.
- Use `Date.getDay()` to check weekday by using a modulo operator and then returning a boolean.
```js
const isWeekday = (t = new Date()) => {
return t.getDay() % 6 !== 0;
};
const isWeekday = (t = new Date()) => t.getDay() % 6 !== 0;
```
```js