Here is a filters array with three values: serviceCode1, serviceCode2, and serviceCode3.
['serviceCode1', 'serviceCode2', 'serviceCode3']
I have another array with approximately 78 records that I want to filter based on the above filters.
this.mainDataSet = this.mainDataSet.filter((data) => {
return this.filters.forEach(x => data.serviceCode.includes(x.code!))
});
However, no matter what, the response is always 0. Even if the mainDataSet contains values from the filters array, nothing seems to be working. Can anyone provide some insight into where I might be going wrong?