MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / frameworkPhrase

Function frameworkPhrase

ui/src/lib/entry-model.ts:205–210  ·  view source on GitHub ↗
(frameworks: readonly string[])

Source from the content-addressed store, hash-verified

203 * about the index rather than being quietly misled by it.
204 */
205export 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
212function section(
213 id: EntrySection['id'],

Callers 3

buildEntryPanelFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected