For..in is used to loop through the properties of an object, it looks like you want to loop through an array, which you should use either For Of, forEach or For
for(const val of rooms) {
console.log(val)
}
For..in is used to loop through the properties of an object, it looks like you want to loop through an array, which you should use either For Of, forEach or For
for(const val of rooms) {
console.log(val)
}