📅  最后修改于: 2022-03-11 15:03:08.743000             🧑  作者: Mango
const keep = new Set(['id4', 'id2']);
const result = [];
for(const items of Object.values(data.items))
for(const item of items)
if(keep.has(item.id))
result.push(item);