Untitled

 avatar
unknown
plain_text
2 years ago
160 B
8
Indexable
const result = Object.keys(ids).reduce(
                (acc, key) => ({ ...acc, [key]: key }),
                {} as Record<keyof T, string>,
            );
Editor is loading...