i have one list and one DOM Object i need compare and get different value theirs
Example:
lista1 = ["type", "name","visible"]
lista2 = Object {type: "button", name: "button", class: "buttonBlack", visible: "true", backgroundimage: "null"}
lista2 = Object.keys(list2);
i try:
for(var i = 0; i<lista1.length;i++)
$.each(lista2,function(key,val){
if(lista[i] == val){
list2.remove(val);
}
});
};
I want to get the items that are not equal between them
How can i make this ?
expected return:
["class","backgroundimage"]