MCPcopy Create free account
hub / github.com/d1ll0n/stack-packer / numberToPascalCaseWords

Function numberToPascalCaseWords

src/lib/text.ts:131–136  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

129 modifyLastString(arrOrStr, (str: string) => str === '' ? undefined : str)
130
131export const numberToPascalCaseWords = (n: number) => {
132 const words = toWords(n).split("-");
133 return words
134 .map((word) => word[0].toUpperCase().concat(word.slice(1)))
135 .join("");
136};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected