Skip to content

renameKey #1227

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

Activity

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions