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

Function pluralize

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

Source from the content-addressed store, hash-verified

62};
63
64export const pluralize = (word: string, count: number, append = 's') =>
65 `${word}${count === 1 ? '' : append}`;
66
67export const concatStrings = (
68 strings: Array<string | null | undefined>,

Callers 13

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
WorldStatsFunction · 0.90
WorldBuildLiveFunction · 0.90
countFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected