Function pascalToSnake

Converts a PascalCase string to a snake_case string

camelToSnake('HelloWorld'); // hello_world
  • Parameters

    • str: string

    Returns string