有一个对象数组users,其中有另一个对象数组stations,如何使用函数arr.filter(x => ... )来查找具有station.id == 1
数组示例:
[{
"id": 1603,
"section": {
"id": 2,
"shop": 12
},
"employee": {
"id": 152,
"shop": 12,
"stations": [],
"certified_stations": [],
"is_active": true
},
"cell": null,
"row": null,
"station": [{
"id": 1,
"project": 2
},
{
"id": 2,
"project": 2
}
]
},
{
"id": 1594,
"section": {
"id": 2,
"shop": 12
},
"employee": {
"id": 146,
"shop": 12,
"stations": [],
"certified_stations": [],
"is_active": true
},
"cell": null,
"row": null,
"station": [{
"id": 2,
"project": 2
}]
}
]


