Good headers, I have a problem, I hope you can guide me, in what way could you eliminate a specific element of an arrangement of objects like the following?
array = [
{nom: "NOMBRE 1", tipo: "TIPO A"},
{nom: "NOMBRE 2", tipo: "TIPO B"},
{nom: "NOMBRE 3", tipo: "TIPO C"},
{nom: "NOMBRE 4", tipo: "TIPO D"},
{nom: "NOMBRE 5", tipo: "TIPO E"},
{nom: "NOMBRE 6", tipo: "TIPO F"}
];
I tried to do it with this function but I really did not succeed
var borrar = { "nom":""+"NOMBRE 2"+"","tipo":""+"TIPO B"+"" };
array = array.filter(function(i) {
return i !== borrar
});