text: const hotels = [
      {
          type: 'The Grassy Suites'
          , city: 'Hoptropolis'
          , price: 171
          , rating: 2.8
      }, {
          type: 'First Grassland Suites'
          , city: 'Grassland'
          , price: 180
          , rating: 2.9
      }, {
          type: 'Second Grassland Suites'
          , city: 'Grassland'
          , price: 190
          , rating: 3.1
      }
  ];
  
  export function getData(value, findFunction, property) {
      return findFunction(value, property);
  }
  
  export function findHotels(value, property) {
      return hotels
          .filter(x => x[property] == value);
  
  }