codetrix - v1.5.0
    Preparing search index...

    Function isWeekend

    • Checks if the given date is on a weekend.

      Parameters

      • date: Date

        The date to check.

      Returns boolean

      true if the date is Saturday or Sunday.

      isWeekend(new Date('2025-07-20')); // true (Sunday)