Checks if the given date is on a weekend.
The date to check.
true if the date is Saturday or Sunday.
true
isWeekend(new Date('2025-07-20')); // true (Sunday) Copy
isWeekend(new Date('2025-07-20')); // true (Sunday)
Checks if the given date is on a weekend.