-1
I need to filter using 2 object array so that the first does not have the same information as the second ex:
valorA = [{nome: 'rafael', valor: 29}, {nome: 'diego', value: 21},{nome: 'tiago', value: 12}]
valorB = [{nome: 'rafael', valor: 29}, {nome: 'diego', value: 21}]
// valorA tem que vir somente com tiago,
valorA = valorA.filter(valor => {
return valor.nome != valorB[index].nome
})
I’m trying something kind of like this but don’t go out, someone to help me?