Convert CallingHeader texts to toasts
This commit is contained in:
parent
f180f66e77
commit
292ef1b6f5
10 changed files with 268 additions and 270 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue