function updateAmenityDisplay (checkedObj) {
    if (Object.keys(checkedObj).length === 0) {
      $('.amenities h4').html('&nbsp');
    } else {
      let fullList = Object.keys(checkedObj).join(', ');
      $('.amenities h4').text(fullList);
    }
  }
/**
   * updateAmenityDisplay
   * @param checkedObj: Object with key as name attr name
   * and value as attr id
   *
   * If the checkedObj has no length, &nbsp is put into the <h4>
   * in the amenities filter, if there is a length, it will insert
   * all of the keys(amenity.id) split by a ',' as a string.
   *
   * The truncation is done in CSS. Refer to 6-filters.css line 63
   */
updateAmenityDisplay
@param checkedObj: Object with key as name attr name
and value as attr id

If the checkedObj has no length,   is put into the 
in the amenities filter, if there is a length, it will insert
all of the keys(amenity.id) split by a ',' as a string.

The truncation is done in CSS. Refer to 6-filters.css line 63
updateAmenityDisplay @param checkedObj : Object with key as name attr name and value as attr id If the checkedObj has no length is put into the in the amenities filter if there is a length it will insert all of the keys ( amenity . id ) split by a ' ' as a string . The truncation is done in CSS . Refer to 6 - filters . css line 63
function updateAmenityDisplay (checkedObj) {
    if (Object.keys(checkedObj).length === 0) {
      $('.amenities h4').html('&nbsp');
    } else {
      let fullList = Object.keys(checkedObj).join(', ');
      $('.amenities h4').text(fullList);
    }
  }
function updateAmenityDisplay ( checkedObj ) { if ( Object . keys ( checkedObj ) . length === 0 ) { $ ( '.amenities h4' ) . html ( '&nbsp' ) ; } else { let fullList = Object . keys ( checkedObj ) . join ( ', ' ) ; $ ( '.amenities h4' ) . text ( fullList ) ; } }
updateAmenityDisplay
 @param checkedObj: Object with key as name attr name
 and value as attr id
updateAmenityDisplay @param checkedObj : Object with key as name attr name and value as attr id