schema-components - v3.7.0
    Preparing search index...
    • Rename a key in an object while preserving insertion order. Returns the original reference when the rename is a no-op (same key) or when the new key collides with an existing entry. Mirrors react/headlessRenderers.tsx::renameRecordKey.

      Parameters

      • obj: Record<string, unknown>
      • oldKey: string
      • newKey: string

      Returns Record<string, unknown>