resetRestaurants(restaurants) {
    // Remove all restaurants
    this.restaurants = [];
    const ul = document.getElementById('restaurants-list');
    ul.innerHTML = '';

    // Remove all map markers
    markers.forEach(m => m.setMap(null));
    markers = [];
    this.restaurants = restaurants;
  }
/**
   * Clear current restaurants, their HTML and remove their map markers.
   */
Clear current restaurants, their HTML and remove their map markers.
Clear current restaurants their HTML and remove their map markers .
resetRestaurants(restaurants) {
    this.restaurants = [];
    const ul = document.getElementById('restaurants-list');
    ul.innerHTML = '';
    markers.forEach(m => m.setMap(null));
    markers = [];
    this.restaurants = restaurants;
  }
resetRestaurants ( restaurants ) { this . restaurants = [ ] ; const ul = document . getElementById ( 'restaurants-list' ) ; ul . innerHTML = '' ; markers . forEach ( m => m . setMap ( null ) ) ; markers = [ ] ; this . restaurants = restaurants ; }
Clear current restaurants, their HTML and remove their map markers.
Clear current restaurants their HTML and remove their map markers .
// Remove all restaurants // Remove all map markers