I have a Component and a Service:
Component:
Try this
let val = this.SurveysList.filter(xi => { if (xi.id == parseInt(this.apiId ? '0' : this.apiId)) return xi.Description; }) console.log('Description : ', val );