pickEntry
pickEntry<
K,V>(target): [K,V]
Defined in: src/global/collections.ts:66
One [key, value] pair of a plain object or Map.
Type Parameters
Section titled “Type Parameters”K extends string | number | symbol
V
Parameters
Section titled “Parameters”target
Section titled “target”Record<K, V> | Map<K, V>
Returns
Section titled “Returns”[K, V]
Example
Section titled “Example”pickEntry({ a: 1, b: 2 }); // [ "b", 2 ]