const arr = [
{
"name": "Grand Theft Auto V",
"backgroundImage": "https://media.rawg.io/media/games/456/456dea5e1c7e3cd07060c14e96612001.jpg"
},
{
"name": "The Witcher 3: Wild Hunt",
"backgroundImage": "https://media.rawg.io/media/games/618/618c2031a07bbff6b4f611f10b6bcdbc.jpg"
},
{
"name": "The Witcher 3: Wild Hunt",
"backgroundImage": "https://media.rawg.io/media/games/618/618c2031a07bbff6b4f611f10b6bcdbc.jpg"
},
{
"name": "The Witcher 3: Wild Hunt",
"backgroundImage": "https://media.rawg.io/media/games/618/618c2031a07bbff6b4f611f10b6bcdbc.jpg"
}
]
нужно удалить повторяющиеся элементы но оставить 1 из них
извините за руский мой)
должно вийти
const arr2 = [
{
"name": "Grand Theft Auto V",
"backgroundImage": "https://media.rawg.io/media/games/456/456dea5e1c7e3cd07060c14e96612001.jpg"
},
{
"name": "The Witcher 3: Wild Hunt",
"backgroundImage": "https://media.rawg.io/media/games/618/618c2031a07bbff6b4f611f10b6bcdbc.jpg"
},
]