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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;
};