JSON array filter

// create new array

myarray: any = [];

//consider ourPartnersData is your Json array

this.myArr = this.ourPartnersData.filter(function (el) {
return el.vc_partner_type == 'digital'
});
console.log("new ",this.myArr)

Comments

Popular posts from this blog

Json Array

The maxlength attribute is not working with number

Convering object into Array