As reflexões JavaScript iteram todos os membros
theObject=document;//or whatever object
for (property in theObject) {
console.log(`key= ${property} , value = ${theObject[property]}`)
}
Xanthous Xenomorph