importstrfrom'json-stable-stringify'console.log(arrObjDupl.filter((a,i,arr)=>{conststrA=str(a)returnarr.findIndex((b)=>str(b)===strA)===i}))// Or more efficientlyconsttmpArr=arrObjDupliStr.map((a)=>str(a))console.log(arrObjDupl.filter((_,i)=>tmpArr.indexOf(tmpArr[i])===i))
You can use YAML with sortKeys, if you mean ANY object.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Array of Objects.
You can use YAML with sortKeys, if you mean ANY object.