I am wrong about this problem?

I was requested to rite a function that takes two or more arrays and returns a new array of unique values in the order of the original provided arrays. In other words, all values present from all arrays should be included in their original order, but with no duplicates in the final array. The unique numbers should be sorted by their original order, but the final array should not be sorted in numerical order.

The problem es that the function call have three arguments and function only receives one. My question is;

Is the function header right?

If is right how I could do to get all the info because actually on can access the first array. Here the code:

function uniteUnique(arr) {
  var newArr=[];
  var args = Array.from(arr);
  
  for(i=0;i<arr.length;i++){
    if(Array.isArray(arr[i])){
      for(j=0;j<arr[i].length;j++){
        if(!newArr.includes(arr[i][j])){
          newArr.push(arr[i][j]);
        }
      }
    }else{
      newArr.push(arr[i]);
    }
  }
  return newArr;
}

uniteUnique([1, 3, 2], [5, 2, 1, 4], [2, 1]);

Thanks. I understand that, but ther’s no problem if I take out the argument of uniteUnique()?

Thanks for your help I am on the way to resolve the problem. Again thanks a lot.