javascript: compare with arrays of objects and update the key in Angular 6, Typescript

listOne: [
{ 
  id: 1,
  compId: 11,
  active: false, 
},
{ 
  id: 2,
  compId: 22,
  active: false, 
},
{ 
  id: 3,
  compId: 33,
  active: false, 
},
]

list two [
{ 
  id: 1,
  compId: 11,
  active: true, 
},
{ 
  id: 2,
  compId: 33,
  active: false, 
},
]

I have two json, here how to compare with compId key and update the active key in listOne since list two .

In AngularJs I have tried with this link for AngularJs

But how to integrate with Angular 6 with Typescript.
Thank you.