Search Docs
toPascalCase
Converts the str to PascalCase, where the first letter of each word is capitalized.
str
import { toPascalCase } from 'funtool/string' toPascalCase('hello_world'); // ✅ 'HelloWorld' toPascalCase('api_version'); // ✅ 'ApiVersion' toPascalCase('API_version'); // ✅ 'APIVersion'
function toPascalCase(str: string): string
string