How to use the relatively simple (or the simplest) method to Filter an array?

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 = ...
Mar.21,2021

for reference

const result = [...new Map(arr.map(e=>[e.id,e]).reverse()).values()].reverse();
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3c6a9-2b054.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3c6a9-2b054.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?