MCPcopy Create free account
hub / github.com/code100x/cms / capitalizeFirstLetter

Function capitalizeFirstLetter

src/hooks/useCertGen.ts:5–10  ·  view source on GitHub ↗
(inputString: string)

Source from the content-addressed store, hash-verified

3import { OneCertificate } from '@/utiles/certificate';
4
5function capitalizeFirstLetter(inputString: string): string {
6 if (inputString.length === 0) {
7 return inputString;
8 }
9 return inputString[0].toUpperCase() + inputString.slice(1);
10}
11
12type GenerateCertificateProps = {
13 certificateDetails: OneCertificate;

Callers 2

generateCertificateFunction · 0.85
generateCertificateImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected