lib/ranger/client.js
function toRooms(data) {
    var i, rooms;

    rooms = [];
    for (i = 0; i < data.rooms.length; i++) {
      rooms.push(new Room(connection, data.rooms[i]));
    }

    return rooms;
  }
function toRooms(data) {
    var i, rooms;

    rooms = [];
    for (i = 0; i < data.rooms.length; i++) {
      rooms.push(new Room(connection, data.rooms[i]));
    }

    return rooms;
  }
function toRooms ( data ) { var i , rooms ; rooms = [ ] ; for ( i = 0 ; i < data . rooms . length ; i ++ ) { rooms . push ( new Room ( connection , data . rooms [ i ] ) ) ; } return rooms ; }
Convert the specified response data into an array of Rooms.
@param {Object} data The server response data.
@return {Array.<Room>} An array of Rooms.
Convert the specified response data into an array of Rooms .