Skip to content

compareYear Type documentation

(first: Date, second: Date) => number
Function
Compares two years.
-
Returns 0 if the years are equal, a number less than 0 if the first year is earlier, a number greater than 0 if the first year is later.
Parameters
The first year to compare.
first: Date
The second year to compare.
second: 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.