fp-filters - v0.5.3
    Preparing search index...

    Function isSameYearToDate

    • Higher-order function. Returns a function that returns true if the argument is a date that is in the same year and is in the past or the same date.

      Parameters

      • comparisonDate: Date

        The date to compare to.

      Returns TPredicate<[date: Date]>

      A function that takes a date and returns true if it is the same year and in the past or the same date as the comparison date.