Guest User

Untitled

a guest
Nov 19th, 2019
102
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var resultRepairAndPMIds = [];
  2.  
  3. for (var i = 0; i < resultRepair.length; ++i) {
  4. resultRepairAndPMIds.push(resultRepair[i].Id);
  5. }
  6.  
  7. for (var j = 0; j < resultPM.length; ++j) {
  8. resultRepairAndPMIds.push(resultPM[j].Id);
  9. }
  10.  
  11. resultRepairAndPMIds = resultRepairAndPMIds.filter((x, i, a) => a.indexOf(x) === i);
RAW Paste Data