I’m struggling to understand the difference between [arguments] and […arguments], as below.
return [...arguments];
}```
and
```function foo(arr){
return [arguments];
}```
The above seem to yield the same output to my console, but not in the example below, the two expressions give different results
``` function uniteUnique(arr){
let output = [];
let newArr = [...arguments];
for(let i = 0; i < newArr.length; i ++){
for(let j = 0; j < newArr[i].length; j ++){
if(!output.includes(newArr[i][j]))
output.push(newArr[i][j]);
}
}
return output;
}```