Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add camel to snake and snake to camel in utils #26

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

danimuller20
Copy link
Contributor

Description

includes;
snakeToCamel: Converts object keys from snake_case to camelCase.
camelToSnakeCase: Converts camelCase strings or arrays of camelCase strings to snake_case.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as before)

Checklist

  • Read the Contributing Guide
  • Perform a code self-review
  • Comment the code, particularly in hard-to-understand areas
  • Add documentation
  • Cover changes with tests
  • Ensure the test suite passes (yarn test)
  • Make sure code lints (yarn lint). Fix it with yarn lint:fix in case of failure.
  • Make sure types are fine (yarn lint:types).

@danimuller20 danimuller20 merged commit 97e017c into master Sep 26, 2023
2 checks passed
@danimuller20 danimuller20 deleted the create-snake-util-function branch September 26, 2023 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants