Comment utiliser des matches () dans JavaScript
let abc = document.getElementById("abc");
console.log(abc.matches('.myclass'));
/*yields true. Asks 'does this element have this selector' */
Javasper