Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 | 1x 1x | // YYYY-MM-DD形式かどうか
export const isYmd = (s: string) => /^\d{4}-\d{2}-\d{2}$/.test(s)
// YYYY-MM-DDを文字列比較で前後判定(形式が正しい前提)
export const isBeforeYmd = (a: string, b: string) => a < b
|