(date: string)
| 501 | } |
| 502 | |
| 503 | function formatDate(date: string) { |
| 504 | const { year, month, day } = dateParts(date); |
| 505 | return `${MONTHS[month - 1]} ${day}, ${year}`; |
| 506 | } |
| 507 | |
| 508 | function dateParts(date: string) { |
| 509 | const [year = "0", month = "0", day = "0"] = date.split("-"); |
no test coverage detected