In the final result object, I could have multiple items, sometimes these are not registered, so I'd like to avoid showing on-screen empty tags. Example:
mostrador.innerHTML = filtrados.map(
(obj) => '
<h4>${obj.cidade}</h4>
<p>${obj.empresa}</p>
<p>${obj.representante}</p>
<p>${obj.telefone}</p>
<p>${obj.email}</p>
<p>${obj.empresa2}</p>
<p>${obj.representante2}</p>
<p>${obj.telefone2}</p>
<p>${obj.email2}</p>
',
In case of company2, delegate2, phone2 and email2 are not filled in, how could I check this to only show tags with filled strings?