Вот мои примеры данных
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"
}
];
Как получить счетчик того, сколько FactorEnrollment: "REQUIRED" находится в массиве выше в angular 8?