Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
searchResults.RelevantResults.map((searchResult) => {
const filtered = intersection(filters, searchResult.RefinementTokenValues.split(','));
if (filtered.length > 0) {
filteredResults.push(searchResult);
}
});