speeling
auto correct is the bane of my existence and my best friend
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
Results in a boolean representation of a specific date.
|
Results in a boolean representation of a specific date.
|
||||||
|
|
||||||
Pass the specific date object firstly.
|
Pass the specific date object firstly.
|
||||||
Use `Date.getDay()` to check weekday by using a modulo operator as 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()) => {
|
const isWeekday = (t = new Date()) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user