(frameworks: readonly string[])
| 203 | * about the index rather than being quietly misled by it. |
| 204 | */ |
| 205 | export function frameworkPhrase(frameworks: readonly string[]): string { |
| 206 | if (frameworks.length === 0) return ''; |
| 207 | if (frameworks.length === 1) return frameworks[0] as string; |
| 208 | if (frameworks.length === 2) return `${frameworks[0]} and ${frameworks[1]}`; |
| 209 | return `${frameworks.slice(0, -1).join(', ')} and ${frameworks[frameworks.length - 1]}`; |
| 210 | } |
| 211 | |
| 212 | function section( |
| 213 | id: EntrySection['id'], |
no test coverage detected