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

Pull Request: Enhance transformKey function to accept currentDepth. #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

khalilrached
Copy link

This pull request enhances the transformKey function to accept an optional parameter currentDepth. This change allows for greater flexibility in transforming keys based on the depth of the current object during flattening.

Changes Made:

  • Updated the transformKey function signature to accept an optional parameter currentDepth.
  • Modified the function calls within the flatten function to pass the currentDepth parameter to the transformKey function.
  • Added unit tests to ensure the transformKey function correctly handles the currentDepth parameter.

Advantage:

  • With this enhancement, users can now customize key transformations based on the depth of the current object, providing more control and adaptability in flattening nested structures.

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.

1 participant