react-playground
Preparing search index...
treemap/src/zip
zip
Function zip
zip
<
T
,
S
>
(
a
:
T
[]
,
b
:
S
[]
)
:
[
T
,
S
]
[]
zip two arrays like Python's zip()
Type Parameters
T
S
Parameters
a
:
T
[]
b
:
S
[]
Returns
[
T
,
S
]
[]
new array of [a[i], b[i]]
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
react-playground
Loading...
zip two arrays like Python's zip()