I am trying to get rid of duplicates from withing a array but I am trying to get rid of the original of those duplicates as well just leaving anything that has not been repeated more than once
Example:
const jsonarray = [{num: 1}, {num: 1}, {num: 2}, {num: 3}, {num: 5}, {num: 5}];
This is what I want the result to be
[{num: 2}, {num: 3}];
I have tried splicing with nested for loop but that did not work any help would be appreciated.