Type alias KeyOf<ArrayOrRecord>

KeyOf<ArrayOrRecord>: ArrayOrRecord extends ReadOnlyArray ? KeyOfArray<ArrayOrRecord> : keyof ArrayOrRecord extends Exclude<PropertyKey, symbol> ? `${keyof ArrayOrRecord}` : never

Generic key for either object or array.

Type Parameters