Zips together an array of keys and values into an object. Requires that keys and values are the same length.
keys
values
const o = zipKeyValue([`a`, `b`, `c`], [0, 1, 2])Yields: { a: 0, b: 1, c: 2} Copy
const o = zipKeyValue([`a`, `b`, `c`], [0, 1, 2])Yields: { a: 0, b: 1, c: 2}
Type of values
String keys
Values
Object with keys and values
Zips together an array of keys and values into an object. Requires that
keys
andvalues
are the same length.Example