(
date: DateArg<Date> & {},
options?: GetISODayOptions,
)
| 28 | * //=> 7 |
| 29 | */ |
| 30 | export function getISODay( |
| 31 | date: DateArg<Date> & {}, |
| 32 | options?: GetISODayOptions, |
| 33 | ): number { |
| 34 | const day = toDate(date, options?.in).getDay(); |
| 35 | return day === 0 ? 7 : day; |
| 36 | } |