Guest User

Untitled

a guest
Aug 19th, 2019
80
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function matchArrays(v,r){
  2. var result = [];
  3. var arr = v.concat(r);
  4. for (var i = 0; i < arr.length; i++) {
  5. if(!result.includes(arr[i])){
  6. result.push(arr[i]);
  7. }
  8. }
  9. return result;
  10. }
RAW Paste Data