mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-13 21:00:26 +08:00
refactor: 前端文件夹名称调整
This commit is contained in:
11
frontend/src/common/utils/arrayOperation.ts
Normal file
11
frontend/src/common/utils/arrayOperation.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
// 判断两数组是否相同
|
||||
export function judementSameArr(news: Array<string>, old: Array<string>) {
|
||||
let count = 0;
|
||||
const leng = old.length;
|
||||
for (let i in old) {
|
||||
for (let j in news) {
|
||||
if (old[i] === news[j]) count++;
|
||||
}
|
||||
}
|
||||
return count === leng ? true : false;
|
||||
}
|
||||
Reference in New Issue
Block a user