I've the following array and I want to delete just the entry where the name is empty like the first and the third object,how should I do it efficentlly?
var myopj =[
{ "Name": "", "Value": "" }
{ "Name": "aaa", "Value": "bbb" },
{ "Name": "", "Value": "" }
];
I saw some example in SO like but in my case it's little bit more complicated, I need to delete name where the value is ""
arr.splice( arr.indexOf( "name" ), 1 );