getEntryKey()function

getEntryKey([k]: Entry<K, T>): K
ParamType
entryEntry<K, T>
The [key, value] entry to read from. required
Return
K
The key (first element) of the entry.

Extract the key from an object entry.

Examples

getEntryKey(["a", 1]) // "a"