Totally stumped here.
I have the following object:
var stStatus = new StockStatus({
"3":{
"is_in_stock":false,
"custom_status_icon":"",
"custom_status":"Out of Stock",
"product_id":"9",
"stockalert":""
},
"5":{
"is_in_stock":true,
"custom_status_icon":"",
"custom_status":"",
"product_id":"10"
},
"88":{
"is_in_stock":true,
"custom_status_icon":"",
"custom_status":"",
"product_id":"296"
}
});
that is being dynamically created, so I don't know the 3, 5, or 88 numbers before hand. I'm trying to figure out how to get the the 3,5,88 and their tied is_in_stock and product_id.
Trying to get it to basically only console.log the product_id and 3,5,88 numbers if is_in_stock is false
Totally stumped.