Encountering an issue in this function:
prepareTickerIn(value: any){
let valueToReturn = '';
value.map((item,i,arr) => {
valueToReturn += (arr.length-1 == i) ? (i==0 ? item.id : 'tickerId.in='+item.id) : (i==0 ? item.id+'&' : 'tickerId.in='+item.id+'&');
})
console.log(valueToReturn);
return valueToReturn;
}
openSearched(item: any) {
console.log(item);
let searchedString = this.prepareTickerIn(item);
this.variableRandom = searchedString;
this.loadAll();
return false;
}
The error is occurring at line 198, specifically where valueToReturn
is assigned.