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.
oldKey === newKey
newKey
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.