We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2751375 commit 6c0e643Copy full SHA for 6c0e643
__tests__/zip.ts
@@ -70,18 +70,18 @@ describe('zip', () => {
70
71
it('fills in the empty zipped values with undefined', () => {
72
expect(
73
- Seq.of(1,2,3).zipAll(Seq.of(4)).toArray()
+ Seq.of(1, 2, 3).zipAll(Seq.of(4)).toArray(),
74
).toEqual(
75
- [[1,4],[2,undefined],[3,undefined]]
+ [[1, 4],[2, undefined],[3, undefined]],
76
);
77
});
78
79
check.it('is always the size of the longest sequence',
80
[gen.notEmpty(gen.array(gen.posInt))], (lengths) => {
81
- var ranges = lengths.map(l => Range(0, l));
82
- var first = ranges.shift();
83
- var zipped = first.zipAll.apply(first, ranges);
84
- var longestLength = Math.max.apply(Math, lengths);
+ const ranges = lengths.map(l => Range(0, l));
+ const first = ranges.shift();
+ const zipped = first.zipAll.apply(first, ranges);
+ const longestLength = Math.max.apply(Math, lengths);
85
expect(zipped.size).toBe(longestLength);
86
87
0 commit comments