Transforms string keys into PascalCase format. Implements (BasaltKeyTransformer).
Transforms a single key from any case to PascalCase.
The key string to transform into PascalCase.
The key string transformed into PascalCase, with the first letter of each word capitalized.
transformKey('my_key_name');Returns "MyKeyName" Copy
transformKey('my_key_name');Returns "MyKeyName"
transformKey('my-key-name');Returns "MyKeyName" Copy
transformKey('my-key-name');Returns "MyKeyName"
transformKey('myLongKeyName');Returns "MyLongKeyName" Copy
transformKey('myLongKeyName');Returns "MyLongKeyName"
Transforms string keys into PascalCase format. Implements (BasaltKeyTransformer).