starting SymptomVsSymptomChartDataProviderTest

This commit is contained in:
frankknoll
2023-11-08 22:04:29 +01:00
parent 9ea037334e
commit f8fa9371f9
9 changed files with 2662 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
class Sets {
static filterSet(set, predicate) {
return new Set([...set].filter(predicate));
}
static union(sets) {
return sets.reduce(
(union, set) => new Set([...union, ...set]),
new Set());
}
static intersection(set1, set2) {
return new Set([...set1].filter(x => set2.has(x)));
}
static isEmpty(set) {
return set.size == 0;
}
}