I have an array of objects:
[{\"value\":\"14\",\"label\":\"7\"},{\"value\":\"14\",\"label\":\"7\"},{\"value\":\"18\",\"label\":\"7\"}]
How I ca
function removeDuplicateObject (arr) { let temp = arr.map((item) => { return JSON.stringify(item); }); temp = Array.from(new Set(temp)); return temp.map((item) => { return JSON.parse(item); }); }
Then removeDuplicateObject(your array)
removeDuplicateObject(your array)