Type alias ValueOf<ArrayOrObject>

ValueOf<ArrayOrObject>: ArrayOrObject[KeyOf<ArrayOrObject>]

Generic key for either object or array.

Example

const object: ReadOnlyRecord<number> = {
"🟢": 1,
"🟩": 2,
};
const key: ValueOf<typeof object> = 1;

Type Parameters