@alextheman/utility - v4.3.5
    Preparing search index...

    Function isAnniversary

    • Checks if the provided dates are exactly a whole number of years apart.

      Parameters

      • firstDate: Date

        The first date to compare.

      • secondDate: Date

        The second date to compare.

      Returns boolean

      True if the provided dates are exactly a whole number of years apart, and false otherwise.