Cara menggunakan matches () di javascript

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