Skip to content
Advertisement

Is there a javacript async equivalent of python zip function?

There is an async iterable

JavaScript

and I want to do someting like this.

JavaScript

I’ve found several walkarouds here, but they all seem to be based on Array.map(). In this way I need to create an array to carry all the data. When the files are big, things go wrong.

I tried

JavaScript

but it gave me a ‘TypeError: .for is not iterable’.

Any help would be appreciated!

Advertisement

Answer

Here’s an async variation of my answer here:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement