You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
602 B

## Rebecca Black
### Instructions
Create the following functions which accept a `Date`:
- `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.
### Notions
- [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)