-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Take the following:
const originalObject = {
title: 'My Title',
flavor: 'bbq',
latestTitle: 'hahahahahaha (business)',
}
renameAll({
latestTitle: 'title',
title: 'updatedTitle',
})(originalObject)
Expected Result:
{
flavor: "bbq",
title: "hahahahahaha (business)",
updatedTitle: "My Title",
}
Actual Result:
{
flavor: "bbq",
updatedTitle: "hahahahahaha (business)",
}
I believe this is happening because of this line that deletes the item from the original object.