Use CSS Child Seletor dentro de JS
single direct child example:
document.querySelector("div > a") // returns the <a> link
all children example:
document.querySelectorAll("div a") // returns NodeList[a, etc...]
Literate Lentil