Tell us what’s happening:
I use VS Code to write and test the code. My solution code passes all of the tests when I run them via VS Code. But fails all of the tests when entered and submitted on the FCC code editor. How could this be?
**Your code so far**
function uniteUnique(arr) {
const numSet = new Set([...arr].flat(1));
const numbers = [];
numSet.forEach((value) => numbers.push(value));
return numbers;
}
uniteUnique([1, 3, 2], [5, 2, 1, 4], [2, 1]);
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36 Edg/89.0.774.57
.
Challenge: Sorted Union
Link to the challenge: