Remove duplicate records with same status and preserve only latest

前端 未结 0 817
死守一世寂寞
死守一世寂寞 2020-12-07 11:26

I have below object.

const data = [
  {
    status: 1,
    date: \'2020-12-01\',
  },
  {
    status: 1,
    date: \'2020-11-01\',
  },
  {
    status: 2,
            


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题