var doctorAry = [ ] ;
var checkAry = [ ] ;
 
// datas是包含多个数组的大数组
// item 是每一个小数组
datas.map((item,index) => {
 
    if(checkAry.indexOf(item.doctorName) == -1){
 
                checkAry.push(item.doctorName)
 
                doctorAry.push(item)
 
    }
 
})
 
// doctorAry 是过滤出带有相同doctorName属性的大数组
console.log( doctorAry )  
 

相关文章:

  • 2022-02-20
  • 2021-11-18
  • 2022-12-23
  • 2022-03-08
  • 2021-08-13
  • 2021-06-11
  • 2022-12-23
  • 2021-07-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案