If the 'id' key is duplicated among the objects in the array, how to delete the object
I tried using filter, map, and set, but it doesn't work. It's not a one-dimensional array, so I don't know how to do it.
as-is
"category": {
    "key": 1,
    "order": 1,
    "list": [
        {
            "id": "12345",
            ...
        },
        {
            "id": "12345",
            ...
        },
        {
            "id": "67890",
            ...
        },
        
    ]
}
to-be
"category": {
    "key": 1,
    "order": 1,
    "list": [
        {
            "id": "12345",
            ...
        },
        {
            "id": "67890",
            ...
        },
        
    ]
}
 
     
     
     
    