2020-05-31 15:21:17 +00:00
|
|
|
## Rebecca Black
|
|
|
|
|
|
|
|
### Instructions
|
|
|
|
|
2022-05-15 12:29:30 +00:00
|
|
|
Create the following functions which accept a `Date`:
|
2021-04-27 19:04:54 +00:00
|
|
|
|
2022-05-15 12:29:30 +00:00
|
|
|
- `isFriday`: returns `true` if the `Date` is a Friday.
|
|
|
|
- `isWeekend`: returns `true` if the `Date` is a weekend day.
|
|
|
|
- `isLeapYear`: returns `true` if the year of the `Date` is a leap year.
|
|
|
|
- `isLastDayOfMonth`: returns `true` if the `Date` represents the last day of the month.
|
2020-05-31 15:21:17 +00:00
|
|
|
|
|
|
|
### Notions
|
|
|
|
|
2022-05-15 12:29:30 +00:00
|
|
|
- [date-fns: isWeekend](https://date-fns.org/v2.14.0/docs/isWeekend)
|
|
|
|
- [date-fns: isAfter](https://date-fns.org/v2.14.0/docs/isAfter)
|
|
|
|
- [date-fns: isLastDayOfMonth](https://date-fns.org/v2.14.0/docs/isLastDayOfMonth)
|