packages/warriorjs-cli/src/ui/printFloorMap.js
function printFloorMap(floorMap) {
  printLine(
    floorMap
      .map(row =>
        row
          .map(({ character, unit }) => {
            if (unit) {
              return getUnitStyle(unit)(character);
            }

            return character;
          })
          .join(''),
      )
      .join('\n'),
  );
}
function printFloorMap(floorMap) {
  printLine(
    floorMap
      .map(row =>
        row
          .map(({ character, unit }) => {
            if (unit) {
              return getUnitStyle(unit)(character);
            }

            return character;
          })
          .join(''),
      )
      .join('\n'),
  );
}
function printFloorMap ( floorMap ) { printLine ( floorMap . map ( row => row . map ( ( { character , unit } ) => { if ( unit ) { return getUnitStyle ( unit ) ( character ) ; } return character ; } ) . join ( '' ) , ) . join ( '\n' ) , ) ; }
Prints the floor map.

@param {Object[][]} floorMap The map of the floor.
Prints the floor map .