You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Update src/utils/arrays.ts
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -55,7 +55,7 @@ export function arrayHasDiff(a: any[], b: any[]): boolean {
|
|||||||
if (a.some(i => !b.includes(i))) return true;
|
if (a.some(i => !b.includes(i))) return true;
|
||||||
|
|
||||||
// if all the keys are common, say so
|
// if all the keys are common, say so
|
||||||
return false
|
return false;
|
||||||
} else {
|
} else {
|
||||||
return true; // different lengths means they are naturally diverged
|
return true; // different lengths means they are naturally diverged
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user