Convert CallingHeader texts to toasts

This commit is contained in:
trevor-signal
2023-11-14 17:05:17 -05:00
committed by GitHub
parent f180f66e77
commit 292ef1b6f5
10 changed files with 268 additions and 270 deletions

View File

@@ -27,3 +27,14 @@ export const isEqual = (
a: Readonly<Set<unknown>>,
b: Readonly<Set<unknown>>
): boolean => a === b || (a.size === b.size && every(a, item => b.has(item)));
export const difference = <T>(
a: Readonly<Set<T>>,
b: Readonly<Set<T>>
): Set<T> => {
const result = new Set([...a]);
for (const item of b) {
result.delete(item);
}
return result;
};