完成资产隔离
This commit is contained in:
@ -170,4 +170,10 @@ export function compare(p) {
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
export function difference(a, b) {
|
||||
let aSet = new Set(a)
|
||||
let bSet = new Set(b)
|
||||
return Array.from(new Set(a.concat(b).filter(v => !aSet.has(v) || !bSet.has(v))))
|
||||
}
|
Reference in New Issue
Block a user