Skip to content

Commit 15973ca

Browse files
committed
fix formatting
1 parent 2e50355 commit 15973ca

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/splitMatchdaysIntoDays.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,16 @@ const matchday = [
4040
[5, 11],
4141
] as [number, number][];
4242

43-
const dayByTeam = (days: readonly (readonly (readonly [number, number])[])[]) => {
43+
const dayByTeam = (
44+
days: readonly (readonly (readonly [number, number])[])[],
45+
) => {
4446
const map = new Map<number, number>();
45-
days.forEach((matches, dayIndex) => {
47+
for (const [dayIndex, matches] of days.entries()) {
4648
for (const [home, away] of matches) {
4749
map.set(home, dayIndex);
4850
map.set(away, dayIndex);
4951
}
50-
});
52+
}
5153
return map;
5254
};
5355

0 commit comments

Comments
 (0)