MCPcopy Create free account
hub / github.com/bitpay/bitcore / capitalize

Method capitalize

packages/bitcore-cli/src/utils.ts:81–83  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

79 }
80
81 static capitalize(text: string): string {
82 return text.charAt(0).toUpperCase() + text.slice(1);
83 }
84
85 static shortID(id: string): string {
86 return id.substring(id.length - 4);

Callers 4

utils.test.tsFile · 0.80
walletStatusFunction · 0.80
getTxProposalsFunction · 0.80
createTransactionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected