src/room.js
function _sanitizeDimensions(dimensions) {
  if (dimensions == undefined) {
    dimensions = {};
  }
  for (let property in Utils.DEFAULT_ROOM_DIMENSIONS) {
    if (!(dimensions.hasOwnProperty(property))) {
      dimensions[property] = Utils.DEFAULT_ROOM_DIMENSIONS[property];
    }
  }
  return dimensions;
}
function _sanitizeDimensions(dimensions) {
  if (dimensions == undefined) {
    dimensions = {};
  }
  for (let property in Utils.DEFAULT_ROOM_DIMENSIONS) {
    if (!(dimensions.hasOwnProperty(property))) {
      dimensions[property] = Utils.DEFAULT_ROOM_DIMENSIONS[property];
    }
  }
  return dimensions;
}
function _sanitizeDimensions ( dimensions ) { if ( dimensions == undefined ) { dimensions = { } ; } for ( let property in Utils . DEFAULT_ROOM_DIMENSIONS ) { if ( ! ( dimensions . hasOwnProperty ( property ) ) ) { dimensions [ property ] = Utils . DEFAULT_ROOM_DIMENSIONS [ property ] ; } } return dimensions ; }
Sanitize dimensions.
@param {Utils~RoomDimensions} dimensions
@return {Utils~RoomDimensions}
Sanitize dimensions .