MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / capitalize

Function capitalize

packages/utilities/src/string.ts:25–27  ·  view source on GitHub ↗
(string: string)

Source from the content-addressed store, hash-verified

23}
24
25export const capitalize = (string: string) => {
26 return string.charAt(0).toUpperCase() + string.slice(1);
27};
28
29export function isWhitespace(character: string) {
30 return /\s/.test(character);

Callers 2

CommunityIntegrationFunction · 0.90
CommunityButtonFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected