SHARE
TWEET

Untitled

a guest Aug 19th, 2019 77 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top