index.js
function renameKey(obj, prevKey, nextKey) {
  return mapKeys(obj, (_, key) => (key === prevKey ? nextKey : key))
}
function renameKey(obj, prevKey, nextKey) {
  return mapKeys(obj, (_, key) => (key === prevKey ? nextKey : key))
}
function renameKey ( obj , prevKey , nextKey ) { return mapKeys ( obj , ( _ , key ) => ( key === prevKey ? nextKey : key ) ) }
Rename key in object without changing its position
Rename key in object without changing its position