how to see if an object is a subclass of another class in js 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)