How to get the difference between two arrays of objects in JavaScript - Stack Overflow

PHOTO EMBED

Wed Sep 28 2022 09:30:28 GMT+0000 (Coordinated Universal Time)

Saved by @ali_alaraby

const results = arrayOne.filter(({ value: id1 }) => !arrayTwo.some(({ value: id2 }) => id2 === id1));
content_copyCOPY

https://stackoverflow.com/questions/21987909/how-to-get-the-difference-between-two-arrays-of-objects-in-javascript