var a = [{3.1: 3.2},
{3.1: 3.2},
{3.1: 3.4},
{2.8: 3},
{3.1: 3.2},
{2.8: 2.8},
{3.1: 3.4},
{3.1: 3.2},
{2.6: 2.6},
{3.1: 3.2},
{2.6: 2.6}]
How to drop duplicate object from list of objects. I worked out for this question :- How to remove all duplicates from an array of objects? but could fit to my code.
I am looking for:
[{3.1: 3.2},{3.1: 3.4},{2.8: 3},{2.8: 2.8},{2.6: 2.6},]