Skip to content

isSameOrBetweenYears Type documentation

(current: Date, from: Date, to: Date) => boolean
Function
Compare the current year is the same year or between start and end year.
-
Returns true if the date is in the provided range.
Parameters
the year object.
current: Date
optional min year, if no value is provided we assume true for the min value.
from?: Date
optional max year, if no value is provided we assume true for the max value.
to?: Date

Types Documentation

No types to document for items on this page.


Except where otherwise noted, content on this site is licensed under MIT License.