ask everyone
Filter the array (in a relatively simple way)
I want Filter to remove objects with the same id in all objects (no matter what the name is as long as the id is the same), that is, to ensure that the id of each object is different. If there are objects with the same id, remove the objects with larger subscript and finally return the new array result
let arr = [{id:"1",name:"1"},{id:"1",name:"2"},{id:"3",name:"3"},{id:"4",name:"4"}.......]
//result
const result = ...