(
date: DateArg<Date> & {},
options?: IsWeekendOptions | undefined,
)
| 25 | * //=> true |
| 26 | */ |
| 27 | export function isWeekend( |
| 28 | date: DateArg<Date> & {}, |
| 29 | options?: IsWeekendOptions | undefined, |
| 30 | ): boolean { |
| 31 | const day = toDate(date, options?.in).getDay(); |
| 32 | return day === 0 || day === 6; |
| 33 | } |
no test coverage detected