vanilla typescript dom code example
Example 1: javascript es6 dom manipulation
myElement.matches('div.bar') === true
Example 2: javascript es6 dom manipulation
const myElement = document.querySelector('#foo > div.bar')
myElement.matches('div.bar') === true
const myElement = document.querySelector('#foo > div.bar')