JS - Condition to hide when the key is empty or null

0 votes
385 views
added Jun 17 in Javascript by lcjr Lieutenant (12,520 points)
<div class="fr_text_row1">
  ${entry.suggest_category}
  ${entry.suggestby ? ` • ${entry.suggestby}` : ""} 
  ${isFeaturedLabel}
</div>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...