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