skip to Main Content

Javascript – Check whether object property exists in an array and display that objects

"employees":[ {"name":"Hosea", "email":"[email protected]", badge="silver"}, {"name":"javier", "email":"[email protected]" badge="silver"}, {"name":"marston", "email":"[email protected]" badge="Gold"} , {"name":"arthur", "email":"[email protected]" badge="Gold"} ] Is there a way to loop through the array to check whether "badge" with same value exist, in the html using ngIf or ngFor? The…

VIEW QUESTION
Back To Top
Search