renameKey
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
Might be helpful to look at #1228 and implement this as a specialisation of renameKeyWith instead.
@dbartholomae yep, sounds good!
Happy to grab this!
@char0n that card still on queue to be developed?
@tauantcamargo sure.
Note: we already have renameKeyWith implemented in https://github.com/char0n/ramda-adjunct/issues/1228. As mentioned above, it would be best to implement renameKey as specialization of renameKeyWith (if possible).