UNPKG

deep-case-crafter

Version:

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

14 lines (13 loc) 394 B
/** * Checks if a string is in kebab-case format * @param str - The string to check * @returns boolean indicating if the string is in kebab-case * * @example * ```typescript * isKebabCase('hello-world') // => true * isKebabCase('helloWorld') // => false * ``` * @internal This function is for internal use by the library */ export declare function isKebabCase(str: string): boolean;