Is there a javascript equivalent of Python\'s zip function? That is, given multiple arrays of equal lengths create an array of pairs.
For instance, if I have three
zip-array
I found an npm module that can be used as a javascript version of python zip
:
zip-array - A javascript equivalent of Python's zip function. Merges together the values of each of the arrays.
https://www.npmjs.com/package/zip-array
tf.data.zip()
in Tensorflow.jsAnother alternate choice is for Tensorflow.js users: if you need a zip
function in python to work with tensorflow datasets in Javascript, you can use tf.data.zip()
in Tensorflow.js.
tf.data.zip() in Tensorflow.js documented at here