Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

multi filtering react

arrayToFilter
.filter(item => item.category_id.includes(selectedCategoryOptions))
.filter(item => item.discounts.length > 0)
.filter((item) => item.name.toLowerCase().indexOf(searchTerm.toLowerCase()) != -1)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multi #filtering #react
ADD COMMENT
Topic
Name
7+7 =