Dynamic audio level indicator
This commit is contained in:
parent
ac59dec5aa
commit
e6223b6a11
24 changed files with 323 additions and 123 deletions
|
@ -24,3 +24,24 @@ export const groupBy = <T, ResultT>(
|
|||
},
|
||||
new Map<ResultT, Array<T>>()
|
||||
);
|
||||
|
||||
export const isEqual = <K, V>(
|
||||
left: ReadonlyMap<K, V>,
|
||||
right: ReadonlyMap<K, V>
|
||||
): boolean => {
|
||||
if (left.size !== right.size) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (const [key, value] of left) {
|
||||
if (!right.has(key)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (right.get(key) !== value) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue