Ramco Ramco

Ramco Ramco

  • 443
  • 3.4k
  • 513.7k

Null Check in Value

Jul 18 2024 7:21 AM

Hi

  I have below code and i want if value is null in fMobileNo then in Html Hyphen should be displayed

    if (this.fatherData && this.fatherData.phoneDetails) {
      this.fMobileNo = this.fatherData.phoneDetails.find((c:any) => c.phoneType === 'MOBILE');
    }

Thanks


Answers (6)