Converts a string to PascalCase.
function toPascalCase( input: string): stringstringConverts a string to PascalCase.
stringstringConverts a string to PascalCase.
Removes non-alphanumeric characters, splits on casing and digits, capitalizes each word, and strips leading/trailing separators.
toPascalCase("hello world"); // "HelloWorld"
toPascalCase("first_name"); // "FirstName"
toPascalCase("user42Profile"); // "User42Profile"
toPascalCase("API response code"); // "ApiResponseCode"
toPascalCase(" messy__input--string "); // "MessyInputString"
