Skip to content

Commit e84cebb

Browse files
committed
Merge branch 'zipAll' of https://github.com/arjans/immutable-js into zipAll
2 parents 58b00c9 + 2884e76 commit e84cebb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/CollectionImpl.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,11 @@ mixin(IndexedCollection, {
700700
return reify(this, zipWithFactory(this, defaultZipper, collections));
701701
},
702702

703+
zipAll(/*, ...collections */) {
704+
const collections = [this].concat(arrCopy(arguments));
705+
return reify(this, zipWithFactory(this, defaultZipper, collections, true));
706+
},
707+
703708
zipWith(zipper /*, ...collections */) {
704709
const collections = arrCopy(arguments);
705710
collections[0] = this;

0 commit comments

Comments
 (0)