Initial commit - Event Planner application
This commit is contained in:
21
node_modules/iterare/lib/zip.js
generated
vendored
Normal file
21
node_modules/iterare/lib/zip.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class ZipIterator {
|
||||
constructor(a, b) {
|
||||
this.a = a;
|
||||
this.b = b;
|
||||
}
|
||||
next() {
|
||||
const a = this.a.next();
|
||||
if (a.done) {
|
||||
return { done: true };
|
||||
}
|
||||
const b = this.b.next();
|
||||
if (b.done) {
|
||||
return { done: true };
|
||||
}
|
||||
return { value: [a.value, b.value], done: false };
|
||||
}
|
||||
}
|
||||
exports.ZipIterator = ZipIterator;
|
||||
//# sourceMappingURL=zip.js.map
|
||||
Reference in New Issue
Block a user