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

Function capitalize

packages/shared/src/lib/strings.ts:21–22  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

19};
20
21export const capitalize = (value: string): string =>
22 (value && value[0].toUpperCase() + value.slice(1)) || '';
23
24/**
25 * Formats a keyword/tag value into a human-readable page title, e.g.

Callers 10

PromotionTourFunction · 0.90
SquadDetailsFunction · 0.90
SquadModerationItemFunction · 0.90
SocialPersonalizedBannerFunction · 0.90
onToggleFunction · 0.90
providerLabelFunction · 0.90
unlinkProviderFunction · 0.90
WorldBuildLiveFunction · 0.90
formatKeywordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected