Type alias EntryOf<ArrayOrRecord>

EntryOf<ArrayOrRecord>: Entry<KeyOf<ArrayOrRecord>, ValueOf<ArrayOrRecord>>

Object or array Entry.

Example

const object = {
"🟢": 1,
"🟩": 2,
};
const entries: EntryOf<typeof object> = Object.entries(object)[0];

Type Parameters