Skip to main content

Function: objectEntries()

objectEntries<T>(obj: T): T extends ArrayLike<any> ? [`${number}`, T[number]][] : [keyof T, T[keyof T]][]

Type Parameters

Type Parameter
T extends object

Parameters

ParameterType
objT

Returns

T extends ArrayLike<any> ? [`${number}`, T[number]][] : [keyof T, T[keyof T]][]

Defined in

objectEntries.ts:1