Here is my sample data
this.factorList = [
{
factorEnrollment: "OPTIONAL",
factorProvider: "OKTA",
factorStatus: "NOT_SETUP",
factorType: "call"
},
{
factorEnrollment: "OPTIONAL",
factorProvider: "OKTA",
factorStatus: "NOT_SETUP",
factorType: "sms"
},
{
factorEnrollment: "REQUIRED",
factorProvider: "OKTA",
factorStatus: "NOT_SETUP",
factorType: "sms"
}
];
How to get a count of how many FactorEnrollment: "REQUIRED" is in the array above in angular 8?