Here is the data that I am working with:
properties: {
'2': [
{
id: "2015-1160312",
date: "2015-01-23",
number: 1,
nature: "Sell",
value: 310000,
address_number: 10,
adresse_code: "ST LINCOLN",
ZIPCODE: "CO80216",
number_rooms: 2}
],
'4': [
{
id: "2015-1160312",
date: "2015-01-23",
nature_mutation: "Sell",
value: 450000,
address_number: 15,
adresse_code: "ST HOOHER",
ZIPCODE: "CO45216",
number_rooms: 4
}
]
}
Additionally, I have a filter object that is dynamically created as follows:
let selectedFilters = {1,2,3};
My goal is to filter out the properties where the "number_rooms" match the items in the selectedFilters array. Based on this example, only the first item should be returned.