Skip to content

renameKey #1227

Open
Open
@char0n

Description

@char0n

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions