mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-23 15:02:28 +00:00
fix
This commit is contained in:
1 parent
2d0591aba0
commit
a8b8b8d518
1 file changed
+1
-1
@@ -31,7 +31,7 @@ Set.prototype.symmetricDifference ||= function <T>(set: Set<T>) {
|
||||
return newSet;
|
||||
};
|
||||
Set.prototype.isDisjointFrom ||= function <T>(set: Set<T>) {
|
||||
return this.symmetricDifference(set).size === 0;
|
||||
return this.intersection(set).size === 0;
|
||||
};
|
||||
Set.prototype.union ||= function <T>(set: Set<T>) {
|
||||
return new Set([...this, ...set]);
|
||||
|
||||
Reference in new issue
Block a user