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

renameKey #1227

Open
2 tasks
char0n opened this issue Dec 24, 2019 · 6 comments
Open
2 tasks

renameKey #1227

char0n opened this issue Dec 24, 2019 · 6 comments
Assignees

Comments

@char0n
Copy link
Owner

char0n commented Dec 24, 2019

Is your feature request related to a problem? Please describe.

Renames single key of an object.

Describe the solution you'd like

const obj = {key: 1};
RA.renameKey('key', 'renamedKey', obj); //=> {renamedKey: 1}

Describe alternatives you've considered

RA.renameKeyWith

Additional context

This function should be implemented as specialization of R.renameKeys. Ramda cookbook contains reference to this function. After the implement edit cookbook and the reference there.

  • implement the function
  • add ref to ramda cookbook
@char0n char0n mentioned this issue Dec 24, 2019
2 tasks
@char0n char0n added the Hacktoberfest Hacktoberfest 2020 label Sep 13, 2020
@dbartholomae
Copy link
Contributor

Might be helpful to look at #1228 and implement this as a specialisation of renameKeyWith instead.

@char0n
Copy link
Owner Author

char0n commented Oct 1, 2020

@dbartholomae yep, sounds good!

@Maushundb
Copy link
Contributor

Happy to grab this!

@tauantcamargo
Copy link
Contributor

@char0n that card still on queue to be developed?

@char0n
Copy link
Owner Author

char0n commented Sep 18, 2022

@tauantcamargo sure.

@char0n
Copy link
Owner Author

char0n commented Sep 18, 2022

Note: we already have renameKeyWith implemented in #1228. As mentioned above, it would be best to implement renameKey as specialization of renameKeyWith (if possible).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants