Function camelToSnake

Converts a camelCase string to a snake_case string

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

    • str: string

    Returns string