I have following array:
[
{name: "Joske", code: "IEDDK"},
{name: "Mieke", code: "IEDDK"},
{name: "Jan", code: "IEDDK"},
{name: "Test", code: "IsxJK"},
{name: "Koen", code: "IsxJK"},
]
And I need a function which gives me an array of objects where there is only once occurrence of the code property:
[
{name: "Joske", code: "IEDDK"},
{name: "Test", code: "IsxJK"},
]
I have thought about it and I think I'm making it harder than it needs to be. Does someone has a simple function to do this?