const filteredPlaces = (placesArray, filteredServicesArray) => {
let dracarys = [];
let dany = [];
for (let i = 0; i < filteredServicesArray.length; i++) {
for (let j = 0; j < placesArray.length; j++) {
let services = placesArray[j].services
for (let k = 0; k < services.length; k++) {
if (services[k].id === filteredServicesArray[i].id) {
dany.push(services[k])
}
if (dany.length === filteredServicesArray.length) {
dracarys.push(placesArray[j])
}
}
}
}
return dracarys
}