Les réflexions JavaScript itérent tous les membres

theObject=document;//or whatever object
for (property in theObject) {
   console.log(`key= ${property} , value = ${theObject[property]}`)
}
Xanthous Xenomorph