What if Filter drops objects with duplicate attributes in the array?

RT
for example:

const demo = [
  { a:1, b:4 },
  { a:2, b:4 },
  { a:3, b:5 },
]

now you want to drop {acode 1, bazaar 4} or {acode 2, bazaar 4} in demo, just leave one of them and return a new array. Is there any quick way for ES6 to get back to a new array?

the result after Filter is

const demo = [
  { a:1, b:4 },
  { a:3, b:5 },
]

or

const demo = [
  { a:2, b:4 },
  { a:3, b:5 },
]

Hi, ideas for reference

   

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-1eaaee7-46a97.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-1eaaee7-46a97.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?