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 5f8d03c commit 9e6f21dCopy full SHA for 9e6f21d
source/list.js
@@ -74,8 +74,8 @@ export class List {
74
*/
75
compare(ys) {
76
if (isEmpty(this) && isEmpty(ys)) { return EQ; }
77
- if (isEmpty(this) && isEmpty(ys) === false) { return LT; }
78
- if (isEmpty(this) === false && isEmpty(ys)) { return GT; }
+ if (isEmpty(this) && !isEmpty(ys)) { return LT; }
+ if (!isEmpty(this) && isEmpty(ys)) { return GT; }
79
if (this.head() === head(ys)) { return this.tail().compare(tail(ys)); }
80
return this.head() < head(ys) ? LT : GT;
81
}
0 commit comments