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) • 397 B
TypeScript
/**
* Checks if a string is in snake_case format
* @param str - The string to check
* @returns boolean indicating if the string is in snake_case
*
* @example
* ```typescript
* isSnakeCase('hello_world') // => true
* isSnakeCase('helloWorld') // => false
* ```
*
* @internal This function is for internal use by the library
*/
export default function isSnakeCase(str: string): boolean;