mirror of
https://github.com/nx-bat/discordbot-ng.git
synced 2026-09-22 10:29:10 -04:00
6 lines
219 B
TypeScript
6 lines
219 B
TypeScript
export function getArrayDifference(oldArr: any[], newArr: any[]) {
|
|
const added = newArr.filter(e => !oldArr.includes(e));
|
|
const removed = oldArr.filter(e => !newArr.includes(e));
|
|
|
|
return { added, removed };
|
|
} |