What am I doing wrong?
for(elevator of elevators) {
elevator.on('idle', () => {
//do some logic with elevator
})
}
It only seems to run for the second elevator rather than both of them?