MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / pluralize

Function pluralize

src/utils/renderers/domain-result-text.ts:339–341  ·  view source on GitHub ↗
(count: number, singular: string, plural = `${singular}s`)

Source from the content-addressed store, hash-verified

337}
338
339function pluralize(count: number, singular: string, plural = `${singular}s`): string {
340 return `${count} ${count === 1 ? singular : plural}`;
341}
342
343function formatSessionDefaultsValue(value: unknown): string {
344 return value === null || value === undefined ? '(not set)' : String(value);

Callers 3

createProjectListItemsFunction · 0.70
createCaptureResultItemsFunction · 0.70
createSpecialCaseItemsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected