chore: make firmware update log shorter (#675)
* chore: add lodash to the roor package.json * chore: make firmware update log shorter
This commit is contained in:
committed by
László Monda
parent
9ef11eaa34
commit
c4d7318686
15
packages/uhk-common/src/util/is-equal-array.ts
Normal file
15
packages/uhk-common/src/util/is-equal-array.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { isEqual } from 'lodash';
|
||||
|
||||
export const isEqualArray = (arr1: Array<any>, arr2: Array<any>): boolean => {
|
||||
if (arr1.length !== arr2.length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (const a of arr1) {
|
||||
if (!arr2.some(b => isEqual(a, b))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
Reference in New Issue
Block a user