(values: Array<string | undefined>)
| 593 | } |
| 594 | |
| 595 | function sentenceList(values: Array<string | undefined>) { |
| 596 | const parts = values.filter((value): value is string => Boolean(value)); |
| 597 | if (parts.length === 0) return undefined; |
| 598 | return parts.join("; "); |
| 599 | } |
| 600 | |
| 601 | function factSentence(values: Array<string | undefined>, prefix = "Includes") { |
| 602 | const list = sentenceList(values); |
no outgoing calls
no test coverage detected