I am trying to concatenate words and at same time, remove, null and undefined. Currently still getting error in the image below. How would someone resolve this?
javascript-string-concatenation-behavior-with-null-or-undefined-values
In the picture, one of the properties is saying
TypeError: cannot read property of undefined
Its like it cannot even read the argument in first place, to apply the undefined filters, etc.
get copyFromDescription() {
if (this.addressId == 0) {
return 'Select';
} else { return [this.apn, this.combinedAddress,this.addressType.addressTypeDescription].filter(Boolean).join('') }
}
Data Value Picture
