问题描述
我有以下数据:
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",nature_mutation: "Sell",value: 450000,address_number: 15,adresse_code: "ST HOOHER",ZIPCODE: "CO45216",number_rooms: 4
}
]
}
let selectedFilters = {1,2,3};
我要过滤“ number_rooms”对应于selectedFilters项的属性。 在示例中,我应该只获得第一项
解决方法
似乎Error: Main parameters are required ("file1 [file2 file3...]")
Usage: <main class> [options] file1 [file2 file3...]
Options:
-d
The directory where the file(s) will be created
Default: .
已按properties
分组,因此这意味着您不需要筛选,只需遍历number_rooms
键即可。像-
selectedFilters