// โญ zip()// zip a list of iterables into a single generator function.function*zip(...iterables) {// iterables -> iteratorslet iterators =iterables.map(it => it[Symbol.iterator]());// iterators -> iteration resultslet results =iterators.map(it =>it.next());let index =0;// while some results not done, yield valueswhile (results.some(result =>!result.done)) { yieldresults.map(result =>result.value); results =iterators.map(it =>it.next()); }// all results donereturn;}// exportmodule.exports= zip;