how to check if a class is an instance of another class 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)