There is a site with api. With the help of the code below, I get the data and bring it to the site. How to make that only data that has a logo parameter is displayed?
fetch(url)
.then(function(response){
return response.json();
})
.then(function(result){
let inner = '';
result.data.forEach(e => {
let name = e.name,
releaseDate = e.year,
projects = e.projectsCount,
docs = e.docs,
logo = e.logo;
inner += `<div class="col-4">
<img src=${logo} alt="logo">
<p><b>${name}</b></p>
<p>Release ${releaseDate}</p>
<p>${projects} projects GitHub</p>
<a href=${docs} alt="docs">Docs</a>
</div>`;
info.innerHTML = inner;
});
});