StefiIOE

2.3

Nov 25th, 2020
529
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const number = [];
  2. const number1 = [];
  3.  
  4. function difference(number , number1){
  5.  
  6.     number = number.concat(number1);
  7.     for(var i = 0 ; i < 4 ; i++){
  8.         number = Array.prototype.concat.apply([],number);
  9.     }
  10.     ///(...)expands an array into a list.
  11.     let unique = [... new Set(number)];
  12.     return unique;
  13. }
  14.  
  15. //add more code/functions if you need
RAW Paste Data