Hello everyone, I've been attempting to filter my results using the filter and includes methods but it doesn't seem to be working. Does anyone have a solution for this, perhaps involving includes or something similar?
companies ids
[1,2,3]
user companies ids
[1,2]
filtered result
[1,2]
I've tried the following approach:
this.company.filter(company => company.id.includes(this.reviewerData.company_ids))
However, the output is just an empty array []
Thank you in advance for any help!