My goal is to apply a class based on two objects at once.
<div class="col" [ngClass]="{'d-none':item.FinancialDetails?.length===0 || item.FinancialDetails===undefined || itemFinancials===false }">
<app-financials [financials]="item.FinancialDetails"></app-financials>
</div>
As shown above, I am now checking both the length and undefined conditions for the object FinancialDetails because only using length did not produce the expected result.
Is there a way to combine these first two conditions into one? Specifically, combining the length and undefined condition.