Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / utils / diff.ts
blob5a05b4ef1cb1dc89f4b9fa8dbd334f8726890043
1 /**
2  * Returns all elements included in the first array BUT NOT in the second one
3  */
4 const diff = <T>(arr1: T[], arr2: T[]) => arr1.filter((a) => !arr2.includes(a));
6 export default diff;