This commit is contained in:
xuziqiang
2024-05-15 17:29:42 +08:00
commit d0155dbe3c
7296 changed files with 1832517 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
export function compareArrays(arr1: { id: any; type: any; componentRef: any }[], arr2: any[]) {
const val: any[] = [];
arr1.map((item: { id: any; type: any; componentRef: any }) => {
const ret = arr2.find((ev) => {
return ev.id === item.id && ev.type == item.type && ev.componentRef == item.componentRef;
});
if (ret == undefined) {
val.push(item);
}
});
return val;
}