Update isWeekday.md

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-07 21:20:10 +03:00
committed by GitHub
parent c8c73e06f5
commit 6d1bb5e8d9

View File

@ -9,7 +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. - Use `Date.getDay()` to check weekday by using a modulo operator and then returning a boolean.
```js ```js
const isWeekday = (t = new Date()) => t.getDay() % 6 !== 0; const isWeekday = (d = new Date()) => d.getDay() % 6 !== 0;
``` ```
```js ```js