MCPcopy Create free account
hub / github.com/dailydotdev/apps / pluralize

Function pluralize

packages/shared/src/lib/strings.ts:58–59  ·  view source on GitHub ↗
(word: string, count: number, append = 's')

Source from the content-addressed store, hash-verified

56};
57
58export const pluralize = (word: string, count: number, append = 's') =>
59 `${word}${count === 1 ? '' : append}`;
60
61export const concatStrings = (
62 strings: Array<string | null | undefined>,

Callers 11

SquadAdGridFunction · 0.90
SquadFeedStatsFunction · 0.90
PostMetadataFunction · 0.90
PostMetadataFunction · 0.90
CollectionPostContentRawFunction · 0.90
CollectionSourcesFunction · 0.90
publishExperienceTimeFunction · 0.90
formatTotalDurationFunction · 0.90
readHistoryToTooltipFunction · 0.90
countFunction · 0.90
WorldPanelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected