📜  多重过滤反应 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:53.595000             🧑  作者: Mango

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