arrayToFilter .filter(item => item.category_id.includes(selectedCategoryOptions)) .filter(item => item.discounts.length > 0) .filter((item) => item.name.toLowerCase().indexOf(searchTerm.toLowerCase()) != -1)