MCPcopy
hub / github.com/amplication/amplication / pluralize

Function pluralize

packages/amplication-client/src/util/pluralize.ts:1–3  ·  view source on GitHub ↗
(count = 0, singular: string, plural: string)

Source from the content-addressed store, hash-verified

1export function pluralize(count = 0, singular: string, plural: string): string {
2 return count > 1 || count === 0 ? plural : singular;
3}

Callers 15

EntityListFunction · 0.90
TopicList.tsxFile · 0.90
MemberListFunction · 0.90
CatalogGridFunction · 0.90
RoleList.tsxFile · 0.90
OutdatedVersionAlertListFunction · 0.90
ResourceVersionListFunction · 0.90
ServiceTemplateListFunction · 0.90
RoleList.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected