MCPcopy Index your code
hub / github.com/LearnPrompt/LearnPrompt / upperFirst

Function upperFirst

src/utils/jsUtils.ts:36–41  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

34}
35
36export function upperFirst(str) {
37 if (typeof str !== 'string' || str.length === 0) {
38 return ''
39 }
40 return str.charAt(0).toUpperCase() + str.slice(1)
41}

Callers 1

ShowcaseCardsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected