I'm getting a Javascript object in the following format
{
"Alerts": [{
"Name": "...",
"Type": "Warning",
"Message": "...",
"Time": "..."
},
{
"Name": "...",
"Type": "Critical",
"Message": "...",
"Time": "..."
},
{
"Name": "...",
"Type": "Info",
"Message": "...",
"Time": "..."
}]
}
How do I check if an alert of the type Critical exists anywhere in this array object I receive.
I am using angularjs.