Function convertToSnakeCase

Converts the keys of an object from camelCase to snake_case.

  • Parameters

    • obj: Record<string, any>

      The input object with camelCase keys.

    Returns Record<string, any>

    A new object with snake_case keys and the same values.