mirror of https://github.com/01-edu/public.git
docs(date-is): correct grammar
This commit is contained in:
parent
654b8555de
commit
b553cb6712
|
@ -4,16 +4,16 @@
|
|||
|
||||
Create the following functions:
|
||||
|
||||
- `isValid`, this function must return false if it's an Invalid Date
|
||||
- `isAfter`, this function will receive two valid dates and return true if the first date is bigger then the second date
|
||||
- `isBefore`, this function will receive two valid dates and return true if the first date is lesser then the second date
|
||||
- `isFuture`, will return true if the date given as parameter is valid and higher than the present date
|
||||
- `isPast`, will return true if the date given as parameter is valid and less than the present date
|
||||
- `isValid`: accepts a `Date`, and returns `false` if the `Date` is invalid.
|
||||
- `isAfter`: accepts two `Date` arguments, and returns `true` if the first is greater then the second.
|
||||
- `isBefore`: accepts two `Date` arguments, and returns `true` if the second is greater than the first.
|
||||
- `isFuture`: accepts a `Date`, and returns `true` if the `Date` is valid, and is after than the present date.
|
||||
- `isPast`: accepts a `Date`, and returns `true` if the `Date` is valid, and is before the present date.
|
||||
|
||||
### Notions
|
||||
|
||||
- [date-fns.org/v2.14.0/docs/isValid](https://date-fns.org/v2.14.0/docs/isValid)
|
||||
- [date-fns.org/v2.14.0/docs/isAfter](https://date-fns.org/v2.14.0/docs/isAfter)
|
||||
- [date-fns.org/v2.14.0/docs/isBefore](https://date-fns.org/v2.14.0/docs/isBefore)
|
||||
- [date-fns.org/v2.14.0/docs/isFuture](https://date-fns.org/v2.14.0/docs/isFuture)
|
||||
- [date-fns.org/v2.14.0/docs/isPast](https://date-fns.org/v2.14.0/docs/isPast)
|
||||
- [date-fns: isValid](https://date-fns.org/v2.14.0/docs/isValid)
|
||||
- [date-fns: isAfter](https://date-fns.org/v2.14.0/docs/isAfter)
|
||||
- [date-fns: isBefore](https://date-fns.org/v2.14.0/docs/isBefore)
|
||||
- [date-fns: isFuture](https://date-fns.org/v2.14.0/docs/isFuture)
|
||||
- [date-fns: isPast](https://date-fns.org/v2.14.0/docs/isPast)
|
||||
|
|
Loading…
Reference in New Issue