You should retrieve the array inside the object:
object.A
Next you need to loop through the array you want to check
var allMatch = true;
var object = {"A":["00002","00003","00004"]};
["00002", "00003"].forEach(function(item){
if(object.A.indexOf(item) === -1){ // -1 when not found
allMatch = false;
}
});
alert("Do they all match? " + allMatch);
Or if you need Old Internet Explorer support.
var allMatch = true;
var object = {"A":["00002","00003","00004"]};
var arr = ["00002", "00003"];
for(var i=0;i<arr.length;i++){
if(object.A.indexOf(arr[i]) === -1){ // -1 when not found
allMatch = false;
break; // Stop for loop, since it is false anyway
}
};
alert("Do they all match? " + allMatch);