Sry if its a silly question, I'm not soo good in JavaScript  Why can't I use:
for (let room of Game.rooms) {
 room.lookAt(1,1);
}
If i use "room IN Game.rooms" then I can't access the lookAt function again because I get the error:
"TypeError: room.lookAt is not a function"
Â
Solution:
for (let room in Game.rooms) {
 Game.rooms[room].lookAt(1,1);
}
Thx Atavus for the answer!