Update src/utils/arrays.ts

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Travis Ralston 2020-07-28 06:37:19 -06:00 committed by GitHub
parent 2a8881f753
commit 1573c88b47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
} }