1 contributor
Like
Install zip-obj as a package?
Copied
npm i @bit/justin-capalbo.ramda.zip-obj
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
zipObj (
keys:
Array
,values:
) : Array
Object
Creates a new object out of a list of keys and a list of values.
Key/value pairing is truncated to the length of the shorter of the two lists.
Note: zipObj
is equivalent to pipe(zip, fromPairs)
.
Example
Arguments
keys:
Array
The array that will be properties on the output object.
values:
Array
The list of values on the output object.
Returns
Object
The object made by pairing up same-indexed elements of `keys` and `values`.