Javascript – How to remove all items with a duplicate from an array of objects?
i have below array of object from API response.i want to push only those object whose id is not repeating and totalTime is 0 for ex - in below JSON, object with id = 4 is repeating twice so i…