axdbk  
const deps = {
   '采购部':[1,2,3],
   '人事部':[5,8,12],
   '行政部':[5,14,79],
  '运输部':[3,64,105]
}
let member = Object.values(deps).flat(Infinity);    // [1, 2, 3, 5, 8, 12, 5, 14, 79, 3, 64, 105]
posted on 2022-09-21 14:19  前端真难123  阅读(783)  评论(0编辑  收藏  举报