From b553cb6712b74d8fffee33fad6132337b290aae8 Mon Sep 17 00:00:00 2001 From: davhojt Date: Sun, 15 May 2022 14:59:51 +0300 Subject: [PATCH] docs(date-is): correct grammar --- subjects/date-is/README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/subjects/date-is/README.md b/subjects/date-is/README.md index 1ec29b79..c54a7fcd 100644 --- a/subjects/date-is/README.md +++ b/subjects/date-is/README.md @@ -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)