Query: How can I filter out the array items that do not contain images in this JSON response? I am new to Angular and Typescript.
this.music.searchArtists(this.searchQuery).subscribe(
data =>{
this.results = data.artists.items;
console.log(this.results);
}
)
Response: https://i.sstatic.net/8YDtj.png
Item 2 contains an image, while item 3 does not (thus, I want to exclude it). https://i.sstatic.net/JjyOh.png