(str: string)
| 554 | ]; |
| 555 | |
| 556 | export function isDate(str: string): boolean { |
| 557 | for (const format of dateFormats) { |
| 558 | const dt = DateTime.fromFormat(str, format); |
| 559 | if (dt.isValid) { |
| 560 | return true; |
| 561 | } |
| 562 | } |
| 563 | return false; |
| 564 | } |
| 565 | |
| 566 | export function joinArraysNoDuplicates<T extends Record<string, any>>( |
| 567 | arr1: T[], |
no outgoing calls
no test coverage detected