export interface IRoomData {
adults: number;
children: number;
childrenAges: number[]|{age: any}[];
}
export interface IRoomData {
adults: number;
children: number;
childrenAges: number[]|{age: any}[];
}
if(this.roomsData){
this.roomsData = this.roomsData.map((room) =>{
for(let i = 0; i < room.childrenAges.length; i++){
room.childrenAges[i] = {age: room.childrenAges[i]};
}
return room;
});
}