1 contributor
Like
Install zip as a package?
Copied
npm i @bit/justin-capalbo.ramda.zip
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
zip (
list1:
Array
,list2:
) : Array
Array
Creates a new list out of the two supplied by pairing up equally-positioned
items from both lists. The returned list is truncated to the length of the
shorter of the two input lists.
Note: zip
is equivalent to zipWith(function(a, b) { return [a, b] })
.
Example
Arguments
list1:
Array
The first array to consider.
list2:
Array
The second array to consider.
Returns
Array
The list made by pairing up same-indexed elements of `list1` and `list2`.