getEntryKey()function
getEntryKey([k]: Entry<K, T>): K
| Param | Type | |
|---|---|---|
entry | Entry<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"