MCPcopy Create free account
hub / github.com/NomicFoundation/hardhat / capitalize

Function capitalize

packages/hardhat-utils/src/string.ts:30–32  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

28 * @returns The string with the first letter capitalized.
29 */
30export function capitalize(str: string): string {
31 return str.charAt(0).toUpperCase() + str.slice(1);
32}
33
34/**
35 * Converts a kebab-case string to camelCase.

Callers 3

verifyFunction · 0.90
internalVerifyActionFunction · 0.90
string.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected