Rename a key in an object while preserving insertion order.
Returns the original object reference when the rename is a no-op
(oldKey === newKey) or when newKey collides with an existing
key — the renderer uses reference equality to skip an unnecessary
props.onChange call.
Rename a key in an object while preserving insertion order. Returns the original object reference when the rename is a no-op (
oldKey === newKey) or whennewKeycollides with an existing key — the renderer uses reference equality to skip an unnecessaryprops.onChangecall.