I'm trying to figure out how to loop over two objects at the same time so that I can compare their properties. What I tried was something like
for ((prop1, prop2) in (obj1, obj2) {
console.log(prop1 == prop2)
}
which definitely didn't work. How do I do this in js?