Function camelToSnake

  • Converts a camelCase string to a snake_case string

    Parameters

    • str: string

    Returns string

    camelToSnake('helloWorld'); // hello_world