how to match both the filter value to lower case
here how can i get the classList to lowerCase
2 Replies
get the classNames of the element in an array, map them to a lowercase value and then do the if statement
or, just make sure your classnames are already lowercased
you can be a bit more fancy and make your own prototype method
el.classList.containsAll()
so you can reuse it easier
ok thanks 👍