UNPKG

deep-case-crafter

Version:

Transforms deeply nested object, array, Map, and Set keys between common case formats while preserving TypeScript type safety

15 lines (14 loc) 399 B
/** * Checks if a string is in PascalCase format * @param str - The string to check * @returns boolean indicating if the string is in PascalCase * * @example * ```typescript * isPascalCase('HelloWorld') // => true * isPascalCase('helloWorld') // => false * ``` * * @internal This function is for internal use by the library */ export default function isPascalCase(str: string): boolean;