How to remove the duplicates objects from a collection in javascript : I am having a collection of objects in that i would like to remove the duplicate objects with same userId can anyone tell me how to do it.
I have tried with lodash uniq but it is meant for arrays.can anyone help me pls

 

       {
         1545300600396:{name: "Mani", uniqueId: 1545300600396, userId: "-LUA49YctCb5Nf0H4Oub"},
         1545300600397:{name: "Sundar", uniqueId: 1545300600397, userId: "-LUA4TtvB4Oaaas9yiZ_"},
         1545300686269:{name: "Vetri vela", uniqueId: 1545300686269, userId: "-LUA4pFE6s_GAZ2F-ywP"},
         1545300686270:{name: "Sabarish", uniqueId: 1545300686270, userId: "-LUA57BpO-orsWfiCL__"},
         1545391149707:{name: "Mani", uniqueId: 1545391149707, userId: "-LUA49YctCb5Nf0H4Oub"}
       }