( a?: A | null, b?: B | null )
| 361 | |
| 362 | /** Returns the greater of the two provider dates. */ |
| 363 | export function maxDate<A extends DateValue, B extends DateValue>( |
| 364 | a?: A | null, |
| 365 | b?: B | null |
| 366 | ): A | B | null | undefined { |
| 367 | if (a && b) { |
| 368 | return a.compare(b) >= 0 ? a : b; |
| 369 | } |
| 370 | |
| 371 | return a || b; |
| 372 | } |
| 373 | |
| 374 | const WEEKEND_DATA = { |
| 375 | AF: [4, 5], |
no test coverage detected