Skip to content

Commit 48c714c

Browse files
committed
running format.mjs
1 parent 403bae7 commit 48c714c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

exercises/practice/sublist/.meta/proof.ci.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ export class List {
66
}
77

88
compare(other) {
9-
const sublist = this.items.length === 0 ||
9+
const sublist =
10+
this.items.length === 0 ||
1011
`,${other.items.join(',')},`.includes(`,${this.items.join(',')},`);
11-
const superlist = other.items.length === 0 ||
12+
const superlist =
13+
other.items.length === 0 ||
1214
`,${this.items.join(',')},`.includes(`,${other.items.join(',')},`);
13-
return ['UNEQUAL', 'SUPERLIST', 'SUBLIST', 'EQUAL'][+superlist + (+sublist << 1)]
15+
return ['UNEQUAL', 'SUPERLIST', 'SUBLIST', 'EQUAL'][
16+
+superlist + (+sublist << 1)
17+
];
1418
}
1519
}

0 commit comments

Comments
 (0)