filter ile ilgili sorun için yardımcı olabilir misiniz?
''''
let group = 1
let y = [
{
name: "John",
groupId: [1, 2]
},
{
name: "Doe",
groupId: [1]
},
{
name: "Sam",
groupId: [1, 3]
},
{
name: "Joe",
groupId: [3]
}
]
this.y.filter(f => f.groupId === group)
''''
// array içinde object içindeki arrayin içindeki sayı ile eşleşen object'leri filtrelemek istiyorum.