how to check if class has has another class css code example
Example: check if element with class has another class javascript
const div = document.querySelector('div');
div.classList.contains('secondary'); // trueCode language: JavaScript (javascript)