Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
160 B
4
Indexable
Never
const result = Object.keys(ids).reduce(
                (acc, key) => ({ ...acc, [key]: key }),
                {} as Record<keyof T, string>,
            );